Renamed to_methods to methods

pull/97/head
Holger Mueller 2019-11-17 14:42:12 +01:00
rodzic 6b2506ff4b
commit 50dcf944b8
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -71,7 +71,7 @@ class Datapoint(NamedTuple):
return -1
return abs(imp.imag / imp.real)
def to_capacitive_equivalent(self, ref_impedance: float = 50) -> float:
def capacitive_equivalent(self, ref_impedance: float = 50) -> float:
if self.freq == 0:
return math.inf
imp = self.impedance(ref_impedance)
@ -79,7 +79,7 @@ class Datapoint(NamedTuple):
return math.inf
return -(1 / (self.freq * 2 * math.pi * imp.imag))
def to_inductive_equivalent(self, ref_impedance: float = 50) -> float:
def inductive_equivalent(self, ref_impedance: float = 50) -> float:
if self.freq == 0:
return math.inf
imp = self.impedance(ref_impedance)