Skip to content

Commit e7f5748

Browse files
committed
Update AbstractResistor.py
1 parent 4670db4 commit e7f5748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edg/abstract_parts/AbstractResistor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def generate(self):
150150
resistance_ratio_range = Range((1 - resistance_tol) / (count + resistance_tol * (count - 2)),
151151
(1 + resistance_tol) / (count - resistance_tol * (count - 2)))
152152

153-
elt_resistance = self.resistance / self.count
153+
elt_resistance = resistance_range / count
154154
elt_power = self.power * resistance_ratio_range
155155
elt_voltage = self.voltage * resistance_ratio_range
156156

0 commit comments

Comments
 (0)