-
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
Add file reader for autoionization files #240
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #240 +/- ##
==========================================
- Coverage 91.95% 91.17% -0.78%
==========================================
Files 23 23
Lines 2014 2040 +26
==========================================
+ Hits 1852 1860 +8
- Misses 162 180 +18 ☔ View full report in Codecov by Sentry. |
Thanks Jeff! This looks good to me. Most of the test failures are not related to this PR and are related to another bug that I can fix separately. Thanks also for adding a test. That's definitely the right way to do that. The only issue is that the database we currently test against by default (v8) does not have these ( |
Yup, is there any functionality that allows a version check? A simple check along these lines:
|
Sorry this took me so long to get back to. This ended up being easier than I initially thought in pytest but was still slightly tricky. There's now a custom The CI also now includes tests for versions 9 |
So I don't forget: I'd like to add a docstring to the |
Thanks for the help, Will. I've added a description copied from the CHIANTI docs directly, along with a link with their description of the variables. Hopefully that's sufficient? |
Thanks! Yep, that's great. I just made a quick fix to the reference and included in the bib file for the whole repo to keep the citation style consistent. Once all the tests pass, this is ready to go. Thanks again! |
Fixes #48
Adds the function to read the files. I'm not sure where that would then need to be called within fiasco itself.
Tested with the .auto files in CHIANTI v10: