ihmwg / python-ihm

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

Error processing entry id 66 in version 0.21 (but not in version 0.18) #62

Closed saijananiganesan closed 2 years ago

saijananiganesan commented 2 years ago

Here's the log:

File "../master/pyext/src/validation/init.py", line 31, in init self.system, = ihm.reader.read(fh, model_class=self.model) File "/home/ganesans/anaconda2/lib/python3.7/site-packages/ihm/reader.py", line 3191, in read more_data = r.read_file() File "/home/ganesans/anaconda2/lib/python3.7/site-packages/ihm/format.py", line 585, in read_file return self._read_file_c() File "/home/ganesans/anaconda2/lib/python3.7/site-packages/ihm/format.py", line 636, in _read_file_c eof, more_data = _format.ihm_read_file(self._c_format) File "/home/ganesans/anaconda2/lib/python3.7/site-packages/ihm/reader.py", line 1061, in call = pdbx_seq_one_letter_code.replace('\n', '')

I don't know if the error occurs while processing: _struct_ref.pdbx_seq_one_letter_code or _entity_poly.pdbx_seq_one_letter_code

Here's the exact line of code:

        with open(self.mmcif_file, encoding='latin1') as fh:
            self.system, = ihm.reader.read(fh, model_class=self.model)

This error only occurs in 0.21 and doesn't in 0.18.