forked from ReactionMechanismGenerator/RMG-Py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamp the way ScalarQuantities store and process uncertainties.
In commit 851b2ba it was changed so that Quantitiy.value and Quantity.uncertainty were now in customizable units, and Quantitiy.value_si was the SI value. However, there was no uncertainty_si. Now the uncertainty is also stored in SI units, like the value, and converted to output units on demand. This change should be transparent, i.e. not change anything that was correct before, but it does create a new Quantity.uncertainty_si property, which is what we should have been using instead of .uncertainty in various places. i.e. we now need to go around using this to fix other bugs, such as @GreenGroup/RMG-databaseReactionMechanismGenerator#21 ReactionMechanismGenerator/RMG-database#21 Also to do: do the same thing for the ArrayQuantity class.
- Loading branch information
Showing
2 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters