ihmwg / python-ihm

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

Disallow invalid clustering method/feature in Ensemble class #94

Closed benmwebb closed 1 year ago

benmwebb commented 1 year ago

Currently ihm.model.Ensemble allows for free text for its clustering_method and clustering_feature parameters. But the underlying data items in the IHM dictionary are enumerations. Only allow for values that are members of these enumerations, so that we don't generate invalid mmCIF files.