ihmwg / python-ihm

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

TypeError attempting to read PDB 6ep0 #32

Closed benmwebb closed 5 years ago

benmwebb commented 5 years ago

Christian Hanke reports by email that python-ihm fails to read 6ep0.cif with the following traceback:

  File "D:\Python27_Anaconda\envs\env_for_IHM_Python27\lib\site-packages\ihm\reader.py", line 1617, in read
    h.finalize()

  File "D:\Python27_Anaconda\envs\env_for_IHM_Python27\lib\site-packages\ihm\reader.py", line 1379, in finalize
    offset = self._get_auth_seq_id_offset(asym)

  File "D:\Python27_Anaconda\envs\env_for_IHM_Python27\lib\site-packages\ihm\reader.py", line 1391, in _get_auth_seq_id_offset
    for seq_id in range(rng[0], rng[1]+1):

TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'