We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 039d237 commit 7cbb785Copy full SHA for 7cbb785
1 file changed
rmgpy/constraints.py
@@ -113,7 +113,7 @@ def fails_species_constraints(species):
113
114
max_heavy_atoms = species_constraints.get('maximumHeavyAtoms', -1)
115
if max_heavy_atoms != -1:
116
- heavy_atoms = struct.get_num_atoms() - struct.get_num_atoms('H')
+ heavy_atoms = struct.get_num_atoms() - struct.get_num_atoms('H') - struct.get_num_atoms('X')
117
if heavy_atoms > max_heavy_atoms:
118
return f"Exceeded maximumHeavyAtoms: {heavy_atoms} > {max_heavy_atoms}"
119
0 commit comments