Skip to content

Commit 978f29f

Browse files
authored
Update shunt_capacitor_power_factor_correction.py
removed unnecessary pass and reformatted long line
1 parent 70076dc commit 978f29f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎electronics/shunt_capacitor_power_factor_correction.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def shunt_capacitor_power_factor_correction(
1212
expected_power_factor: float,
1313
) -> float:
1414
"""
15-
Calculate shunt capacitor that will be added in order to achieve the expected power factor from the current power factor
15+
Calculate shunt capacitor that will be added in order to achieve the
16+
expected power factor
1617
1718
Examples:
1819
>>> shunt_capacitor_power_factor_correction(120,60,4000,0.8,0.95)
@@ -59,7 +60,6 @@ def shunt_capacitor_power_factor_correction(
5960
change_reactive_power = current_reactive_power - expected_reactive_power
6061

6162
return change_reactive_power / (2 * math.pi * frequency * (voltage**2))
62-
pass
6363

6464

6565
if __name__ == "__main__":

0 commit comments

Comments
 (0)