Skip to content

Commit

Permalink
Merge pull request #46 from OxfordIonTrapGroup/positive_hfs_const
Browse files Browse the repository at this point in the history
common: fix assignment of F in setB
  • Loading branch information
sotirova authored Aug 4, 2022
2 parents f734498 + 683ca5b commit b32491c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atomic_physics/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def setB(self, B: float):

for M in set(self.M[lev]):
for Fidx, idx in np.ndenumerate(np.where(M == self.M[lev])):
self.F[lev][idx] = F_list[M <= F_list][Fidx[1]]
self.F[lev][idx] = F_list[abs(M) <= F_list][Fidx[1]]

if self.M1 is not None:
self.calc_M1()
Expand Down

0 comments on commit b32491c

Please sign in to comment.