ihmwg / python-ihm

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

Handle non-ASCII mmCIF files with C parser #53

Closed benmwebb closed 4 years ago

benmwebb commented 4 years ago

Currently ihm.reader.read fails if given an mmCIF file that contains non-ASCII characters (e.g. accented characters in author names) with the error Python read method returned too many bytes. While mmCIF files are supposed to be ASCII, we should do something reasonable when given a non-ASCII file.