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 c544d12 commit 08dbca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vayesta/ewf/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def set_cas(self, iaos=None, c_occ=None, c_vir=None, minao='auto', dmet_threshol
c_env = frag.get_env_coeff(indices)
bath = DMET_Bath(self, dmet_threshold=dmet_threshold)
c_dmet = bath.make_dmet_bath(c_env)[0]
c_iao_occ, c_iao_vir = self.diagonalize_cluster_dm(c_iao, c_dmet, tol=2*dmet_threshold)
tol = self.opts.bath_options['occupation_tolerance']
c_iao_occ, c_iao_vir = self.diagonalize_cluster_dm(c_iao, c_dmet, tol=2*tol)

Check warning on line 118 in vayesta/ewf/fragment.py

View check run for this annotation

Codecov / codecov/patch

vayesta/ewf/fragment.py#L117-L118

Added lines #L117 - L118 were not covered by tests
else:
c_iao_occ = c_iao_vir = None

Expand Down

0 comments on commit 08dbca6

Please sign in to comment.