Skip to content

Commit

Permalink
Update fragment.py
Browse files Browse the repository at this point in the history
  • Loading branch information
basilib authored Aug 2, 2023
1 parent 264ef03 commit c544d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vayesta/core/qemb/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ def check_occup(mo_coeff, expected):
# RHF
atol = self.opts.bath_options['occupation_tolerance']
if np.ndim(occup[0]) == 0:
assert np.allclose(occup, 2*expected, rtol=0, atol=atol)
assert np.allclose(occup, 2*expected, rtol=0, atol=2*atol)
else:
assert np.allclose(occup[0], expected, rtol=0, atol=atol)
assert np.allclose(occup[1], expected, rtol=0, atol=atol)
Expand Down

0 comments on commit c544d12

Please sign in to comment.