Skip to content

Commit

Permalink
fix isomorphism with site and morphology
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Feb 28, 2024
1 parent cf972e2 commit 338b2b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rmgpy/molecule/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ def equivalent(self, other, strict=True):
and self.radical_electrons == atom.radical_electrons
and self.lone_pairs == atom.lone_pairs
and self.charge == atom.charge
and self.atomtype is atom.atomtype)
and self.atomtype is atom.atomtype
and self.site == atom.site
and self.morphology == atom.morphology)

else:
return self.element is atom.element
elif isinstance(other, gr.GroupAtom):
Expand Down

0 comments on commit 338b2b8

Please sign in to comment.