V2 pint unit management - #1684
amandadumi wants to merge 38 commits into
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1684 +/- ##
==========================================
+ Coverage 12.07% 12.31% +0.24%
==========================================
Files 116 117 +1
Lines 19159 19221 +62
Branches 4483 4485 +2
==========================================
+ Hits 2313 2368 +55
- Misses 16763 16770 +7
Partials 83 83 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
berquist
left a comment
There was a problem hiding this comment.
This is great. The one thing IMO we need to decide on is where exactly to attach the units in the parsers. My initial thought was right at the parse location (utils.float(line.split()[0]) * ureg.... etc.) but there is something to be said for in the return value like return {scfenergies.__name__: [constructed_data] * ureg.hartree}. That way is cleaner but further from where the data was parsed, esp. if it's in non-standard units.
Yes this is true. I have introduced one change, but i think there may be another.
From in person conversations, I am just attaching native units from the given program and we will determine when to convert to cclib units at a different point, but it's not clear where that will happen yet. |
This pull request integrates pint in for managing units. Specifically this pull request