Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
clean-up and implement the conversion methods #11
clean-up and implement the conversion methods #11
Changes from 30 commits
e9f4c91
d047f0d
d2c4a04
f8567c2
33ddd39
b1d9268
00ea3fd
54f385b
3101db2
b37bdd4
013b056
860aad2
0f076a6
5b1d334
e3d3e72
6855b31
3fa00aa
5052f76
9a17b22
50a7c8e
cc999e4
cf47518
e56aa30
e970515
30b75bc
f2c17c3
2e07ad8
1e20fda
3077b60
c875299
682ef84
426c607
7ac1c56
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should
to_base_units
also be adjusted analogously to use a util fromconversion
or is it fine as-is?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to_base_units
usesQuantity.to_base_units
, so I'm not quite sure how we'd be able to use aconversion
function here. Did you want to add a function toconversion
that calls.to_base_units
? If so, then yes, we could use that to reduce duplicated code.We should also allow passing in a
dict
/ kwargs to control which of theDataArray
's variables should be converted (defaulting to "convert all variables").Both should be a new PR, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here: not sure how to use
conversion
, but we should definitely add a possibility to only convert certain variables.