Skip to content

Commit

Permalink
Remove unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
vatai committed Feb 12, 2024
1 parent 769e993 commit acf9efc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions radicalpy/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,7 @@ def semiclassical_random_hfc(self, I_max: float, fI_max: float) -> float:
)
return I_r if fI_r < f else 0

def semiclassical_random_rotations(
self, I_max: float, fI_max: float
) -> Tuple[float, float, float]:
def semiclassical_random_rotations(self) -> Tuple[float, float, float]:
while True:
theta_r = self.ang_rng.uniform(0, np.pi)
s_r = self.ang_rng.uniform()
Expand Down
2 changes: 1 addition & 1 deletion radicalpy/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ def semiclassical_gen(
for ri, m in enumerate(self.molecules):
h = m.semiclassical_random_hfc(I_max[ri], fI_max[ri])
gamma = m.radical.gamma_mT
rots = m.semiclassical_random_rotations(I_max, fI_max)
rots = m.semiclassical_random_rotations()
for ai, rot in enumerate(rots):
spinop = spinops[ri][ai]
result += gamma * spinop * rot * h
Expand Down

0 comments on commit acf9efc

Please sign in to comment.