-
Notifications
You must be signed in to change notification settings - Fork 33
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
Write charge in elementary charge unit (XML writer) #794
Write charge in elementary charge unit (XML writer) #794
Conversation
…charge_in_elementary
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #794 +/- ##
==========================================
- Coverage 92.37% 92.35% -0.03%
==========================================
Files 66 66
Lines 6861 6864 +3
==========================================
+ Hits 6338 6339 +1
- Misses 523 525 +2 ☔ View full report in Codecov by Sentry. |
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.
Looks like all good changes to me! One minor suggestion with calling the unit registry
Co-authored-by: CalCraven <[email protected]>
Currently, the XML writer will write out coulomb charge by default. This is partially due to the missing
u.Unit("elementary_charge")
in the unit default registry (see #792 for related issue). This PR will change the default to write out inelementary_charge
, by using the custom registryGMSOUnitRegistry
to store the charge unit and write them out to ff xml.