Skip to content

Commit

Permalink
handle isolated case Emin
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Jan 9, 2025
1 parent 0f60274 commit 6fa652d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pynta/coveragedependence.py
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,10 @@ def get_configs_for_calculation(configs_of_concern_by_admol,Ncoad_energy_by_admo
grps = v[2]
Nocc = len([a for a in m.atoms if a.is_surface_site() and any(not a2.is_surface_site() for a2 in a.bonds.keys())])
configs_of_concern.append(v)
Emin = Ncoad_energy_by_admol[admol_name][Nocc-Nocc_isolated]
if Nocc-Nocc_isolated == 0:
Emin = 0.0
else:
Emin = Ncoad_energy_by_admol[admol_name][Nocc-Nocc_isolated]
for grp in grps:
if grp in group_to_occurence_admol:
group_to_occurence_admol[grp] += np.exp(-(E-Emin)/(8.314*T))
Expand Down

0 comments on commit 6fa652d

Please sign in to comment.