Skip to content

Commit

Permalink
#47 adding explicit error message
Browse files Browse the repository at this point in the history
previously an error message when when fragments in an input xyz file
have intermixed fragments was unclear
  • Loading branch information
joshkamm committed May 10, 2023
1 parent c81fd70 commit 9cba070
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pygsm/coordinate_systems/primitive_internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,11 @@ def get_hybrid_indices(self,xyz):
except:
print(elem)
print(type(elem))
raise RuntimeError
raise RuntimeError(
'Attempting to remove nonexistent index while getting hybrid indices. '
'This can occur if the input molecule contains multiple disconnected (not bonded) '
'fragments that have discontiguous atom indices.'
)
# print('hybrid indices')
# print(new_hybrid_indices)

Expand Down

0 comments on commit 9cba070

Please sign in to comment.