Skip to content

Commit

Permalink
Removed triplet O2 and S2 hardcoding from species mol_from_xyz()
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Dec 7, 2024
1 parent eaa5d91 commit e25b80e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arc/species/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -1583,11 +1583,6 @@ def mol_from_xyz(self,
if xyz is None:
return None

if len(xyz['symbols']) == 2 and xyz['symbols'][0] == xyz['symbols'][1] \
and xyz['symbols'][0] in ['O', 'S'] and self.multiplicity == 3:
# Hard-coded for triplet O2 and S2: Don't perceive mol.
return None

if self.mol is not None:
if len(self.mol.atoms) != len(xyz['symbols']):
raise SpeciesError(f'The number of atoms in the molecule and in the coordinates of {self.label} is different.'
Expand Down

0 comments on commit e25b80e

Please sign in to comment.