ihmwg / python-ihm

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

Use special object for values marked as ? #39

Closed benmwebb closed 5 years ago

benmwebb commented 5 years ago

Currently the mmCIF unknown value is represented as a literal ? Python string. This makes it impossible to distinguish from the actual string "?". On the other hand, the omitted value is represented specially (as the Python value None, not as the literal . string) which will never compare equal to any other valid mmCIF value. We should use something similar for mmCIF-unknown.

Note that this would also make handling BinaryCIF more straightforward, since BinaryCIF does not use the values . and ? but instead uses a bitmask.