Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix silencing of errors during ProForma mass calculations #158

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

mobiusklein
Copy link
Contributor

Closes #157

This issue also masked an error in one of the unit tests, where an attribute was misspelled. Previously, I was silently ignoring errors because not all tags have a mass value. Instead, now each tag is asked if it is expected to have a mass value, and if so, it is accessed and added to the accumulator.

Since modifications load lazily, and then read the mass value out of a dict, the KeyError could either be the result of a lookup failure for a modification resolver, or a lookup failure for the resolved properties of the modification, which would silence both mass lookup issues and modification resolution issues. Both of these are now resolved.

@levitsky levitsky merged commit 68b5c3b into levitsky:master Sep 28, 2024
8 checks passed
@levitsky
Copy link
Owner

Thank you @mobiusklein!

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.

Unparsable modifications are silently ignored in ProForma mass calculation
2 participants