Skip to content

Commit

Permalink
better debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tdudgeon committed Dec 6, 2024
1 parent c58dc5b commit 16d1f80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/xchemalign/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,15 @@ def gen_mols_from_cif(cif_file):
try:
for a1, a2, bt in zip(atom1, atom2, bond_type):
mol.AddBond(
atoms[strip_quotes(a1)].GetIntProp('idx'), atoms[strip_quotes(a2)].GetIntProp('idx'), BOND_TYPES[bt]
atoms[strip_quotes(a1)].GetIntProp('idx'),
atoms[strip_quotes(a2)].GetIntProp('idx'),
BOND_TYPES[bt],
)
except:
print('CIF file')
print(cif_file)
print('Ligand')
print(ligand_name)
print('atoms')
print(atoms)
print('comp ids')
Expand Down

0 comments on commit 16d1f80

Please sign in to comment.