Skip to content

Commit

Permalink
fix bug with max_surface_sites specification
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 authored and rwest committed Jul 2, 2023
1 parent 49bb3c1 commit 7cee142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def fails_species_constraints(species):
return True

max_surface_bond_order = species_constraints.get('maximumSurfaceBondOrder', -1)
if max_surface_sites != -1:
if max_surface_bond_order != -1:
for site in struct.get_surface_sites():
if site.get_total_bond_order() > max_surface_bond_order:
return True
Expand Down

0 comments on commit 7cee142

Please sign in to comment.