Skip to content

Commit b9481f3

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

physics/photoelectric_effect.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ def maximum_kinetic_energy(
6060
return max(PLANCK_CONSTANT_EVS * frequency - work_function, 0)
6161
return max(PLANCK_CONSTANT_JS * frequency - work_function, 0)
6262

63-
def calculate_work_function(frequency: float, kinetic_energy: float, in_ev: bool = False) -> float:
63+
64+
def calculate_work_function(
65+
frequency: float, kinetic_energy: float, in_ev: bool = False
66+
) -> float:
6467
"""
6568
Calculates the work function of a surface using the given frequency and kinetic energy.
6669
@@ -100,6 +103,7 @@ def calculate_work_function(frequency: float, kinetic_energy: float, in_ev: bool
100103
return PLANCK_CONSTANT_EVS * frequency - kinetic_energy
101104
return PLANCK_CONSTANT_JS * frequency - kinetic_energy
102105

106+
103107
if __name__ == "__main__":
104108
import doctest
105109

0 commit comments

Comments
 (0)