Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Oct 30, 2019
1 parent adb7fe8 commit af1cc9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions carsons/carsons.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self, model):
gmr = model.geometric_mean_radius
r = model.resistance
ƒ = getattr(model, 'frequency', 60)

self.phases: Iterable[str] = phases
self.phase_positions: Dict[str, Tuple[float, float]] = \
phase_positions
Expand All @@ -91,10 +91,6 @@ def __init__(self, model):
self.ω = 2.0 * π * self.ƒ # angular frequency radians / second

def build_z_primitive(self):
abc_conductors = [
ph if ph in self.phases
else None for ph in ("A", "B", "C")
]
neutral_conductors = sorted([
ph for ph in self.phases
if ph.startswith("N")
Expand Down Expand Up @@ -229,7 +225,8 @@ def __init__(self, model, *args, **kwargs):
self.neutral_strand_count: Dict[str, float] = defaultdict(
lambda: None, neutral_strand_count
)
self.neutral_strand_resistance: Dict[str, float] = neutral_strand_resistance
self.neutral_strand_resistance: Dict[str, float] = \
neutral_strand_resistance
self.radius: Dict[str, float] = defaultdict(lambda: None, {
phase: (diameter_over_neutral - neutral_strand_diameter[phase]) / 2
for phase, diameter_over_neutral
Expand Down
1 change: 0 additions & 1 deletion tests/test_overhead_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ def CN_line_phase_impedance_50Hz():
[(ACBN_geometry_line, 60, ACBN_line_phase_impedance_60Hz()),
(CBN_geometry_line, 60, CBN_line_phase_impedance_60Hz()),
(CN_geometry_line, 60, CN_line_phase_impedance_60Hz()),
(ACBN_geometry_line, 50, ACBN_line_phase_impedance_50Hz()),
(CBN_geometry_line, 50, CBN_line_phase_impedance_50Hz()),
(CN_geometry_line, 50, CN_line_phase_impedance_50Hz())])
Expand Down

0 comments on commit af1cc9f

Please sign in to comment.