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

Reimplement Molarweight trait #258

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Reimplement Molarweight trait #258

merged 1 commit into from
Oct 30, 2024

Conversation

prehner
Copy link
Contributor

@prehner prehner commented Oct 25, 2024

💥 The Molarweight trait makes a comeback 💥

Analogous to EntropyScaling, implementing molar weights for models in Rust becomes optional again. Specific properties can thus only be evaluated if the trait is implemented.

IIRC, the last time around this lead to crashes due to panics within getters? The StateVec getters that require a molar weight and the to_dict methods will now check first if the given variant provides a molar weight.

Base automatically changed from quantity_migration to main October 28, 2024 13:46
@prehner prehner force-pushed the molarweight branch 2 times, most recently from c327609 to 88a5eb9 Compare October 28, 2024 13:51
@prehner prehner merged commit 950a96e into main Oct 30, 2024
15 checks passed
@prehner prehner deleted the molarweight branch October 30, 2024 08:50
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