Closed NicoBio closed 4 years ago
fetch a mmCIF structure
Key error
s =atomium.fetch('6xlu')
3.8.3
KeyError Traceback (most recent call last) ~/anaconda3/envs/Py3/lib/python3.8/site-packages/atomium/mmcif.py in add_atom_to_non_polymer(atom, aniso, model, mol_type, names) 519 try: --> 520 model[mol_type][mol_id]["atoms"][ 521 int(atom["id"])
KeyError: 'branched'
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
Thanks for flagging this, I'll aim to get a fix out this week.
This should be fixed now in the new 1.0.6 version - let me know if there any problems.
Expected behaviour
fetch a mmCIF structure
Actual behaviour
Key error
Example code to reproduce
s =atomium.fetch('6xlu')
Python Version/Operating System
3.8.3
For Bug Reports
KeyError Traceback (most recent call last) ~/anaconda3/envs/Py3/lib/python3.8/site-packages/atomium/mmcif.py in add_atom_to_non_polymer(atom, aniso, model, mol_type, names) 519 try: --> 520 model[mol_type][mol_id]["atoms"][ 521 int(atom["id"])
KeyError: 'branched'
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)