Skip to content

Conversation

@sbittrich
Copy link
Member

Access to categories may create empty categories if no data is present, e.g. when invoking getPdbxStructModResidue() for entries without modified residues.
These empty categories weren't properly filtered when writing BinaryCIF, leading to a mismatch between the allocated number of categories and the actually written data.

This PR adds a test for that behavior (without the fix writing seems OK but files fail to open) and hardens the filtering rules for categories.

@sbittrich sbittrich merged commit 754635b into master Sep 30, 2025
1 check passed
@sbittrich sbittrich deleted the dev-sb-empty-categories branch September 30, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants