ihmwg / python-ihm

Python package for handling IHM mmCIF and BinaryCIF files
MIT License
14 stars 7 forks source link

make-mmcif.py fails on 4M44.cif #125

Closed benmwebb closed 7 months ago

benmwebb commented 7 months ago

This fails with

  File "/Users/ben/python-ihm/ihm/dumper.py", line 430, in _check_seq_dif
    entseq[sd.seq_id - 1] = sd.db_monomer.code_canonical
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'code_canonical'

Looks like we need to better handle missing data in seqdif records.