Skip to content

Commit d86f7cd

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d091631 commit d86f7cd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

electronics/power_factor.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ def calculate_correction_capacitance(reactive_power, voltage, frequency=60):
4141
try:
4242
if voltage == 0:
4343
raise ValueError("Voltage cannot be zero.")
44-
capacitance = (
45-
(reactive_power * 1_000_000)
46-
/ (2 * math.pi * frequency * voltage**2)
44+
capacitance = (reactive_power * 1_000_000) / (
45+
2 * math.pi * frequency * voltage**2
4746
)
4847
return capacitance
4948
except TypeError:

0 commit comments

Comments
 (0)