Closed aozalevsky closed 1 year ago
I don't believe the order of categories is mandated anywhere but @brindakv would know for sure. At any rate, python-ihm's reader is supposed to work regardless of the order in which it encounters categories - we even have explicit tests for that in many cases such as https://github.com/ihmwg/python-ihm/blob/0.32/test/test_reader.py#L336-L381. So if it doesn't, that's a bug. I would suggest you reorder the file for now, and I can fix this when I'm back from vacation.
The order of categories should not matter.
Full trace:
I narrowed down the issue to the order of two sections. The code fails on
because actual
_ihm_entity_poly_segment
records are defined ~40 lines belowIf I swap them with each other parsing continues. Indeed, according to the scheme
_ihm_entity_poly_segment
table should go first. @benmwebb can you check my analysis?