Conversation
Codecov Report
@@ Coverage Diff @@
## develop #175 +/- ##
==========================================
Coverage ? 96.14%
==========================================
Files ? 6
Lines ? 987
Branches ? 208
==========================================
Hits ? 949
Misses ? 17
Partials ? 21Continue to review full report at Codecov.
|
|
This is looking good! |
first step - more will follow
|
Requesting review of whats here.
|
|
Asking for review of this as it stands. With hope to merge with following questions:
|
Naming is sorted and Michael is away for a month
No, sympy 1.5 support should be addressed in a separate PR.
I don't think we want to do this. |
|
Sorry @jonc125 just saw your post on slack. Code at present works if unit to be converted-to is in same registry as converted-from so it covers your suggestion. Weblab-fc would be place to take care of protocol/model using same registry and that I'll cover with taking over Michael's issue. I'll leave the other issue open and think a bit more. |
jonc125
left a comment
There was a problem hiding this comment.
With two exceptions I think these are just cosmetic/documentation comments. The more substantive items are:
- After seeing the code, I think it'll actually make our lives easier to say
convert_variablehas to be passed aVariableDummy. - When converting we ought to delete the initial_value from the original variable if it's moved over, as it gets defined by an equation instead.
jonc125
left a comment
There was a problem hiding this comment.
Looks good. Just one typo and one minor fix spotted!
| assert isinstance(variable, VariableDummy) | ||
|
|
||
| # units should be a pint Unit object | ||
| # variable must b in model |
Fixes #77
Description
Adding functions necessary for unit conversion.
Motivation and Context
Fixes #77
Types of changes
Checklist:
Testing