-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix the definition of hydrogenic and helium-like ions #252
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #252 +/- ##
=======================================
Coverage 90.56% 90.56%
=======================================
Files 36 36
Lines 2670 2670
=======================================
Hits 2418 2418
Misses 252 252 ☔ View full report in Codecov by Sentry. |
fiasco/ions.py
Outdated
if (self.hydrogenic and self.atomic_number >= 6) or | ||
(self.helium_like and self.atomic_number >= 10): |
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.
if (self.hydrogenic and self.atomic_number >= 6) or | |
(self.helium_like and self.atomic_number >= 10): | |
if ((self.hydrogenic and self.atomic_number >= 6) or | |
(self.helium_like and self.atomic_number >= 10)): |
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.
Yeah, just noticed the tests failed. Fixing it now...
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.
Too much C++ in my brain.
I'm not sure I understand that last check that's failing. Any idea what the issue is? |
The pre-commit job runs several style checks on the changes to ensure consistent code style across the package. I can fix that easily. You can also install the pre-commit hooks locally using these instructions: https://docs.sunpy.org/en/latest/dev_guide/contents/code_standards.html#formatting and it will fix the files for you. |
Thank you! I didn't know about that. I'll make sure to use it going forward. |
@pryoung also pointed out to me that the Fontes and Dere papers note that the fits to the Fontes cross-sections should be accurate for Interestingly, |
…ns (#253) Co-authored-by: Jeffrey Reep <[email protected]>
Fixes #251
Please review.
I don't think that this line
fiasco/fiasco/ions.py
Line 975 in 282b819
needs to be changed since the function it's embedded in is only called for heavier elements.