Add lines database from Francie Cashman#225
Conversation
…package the datafiles. Updates the path accordingly.
Updating sph-viz branch for recent changes to master since last release
Fix atomic data for Si II 1260 according to Morton 2003
Added equivalent width calculation to "line_observables_dict"
2nd attempt at patching sph-viz branch with past 8 months of updates to master
fixing error in _ion_mass
Mergin sph-viz into master
Update lines.txt
Fixing line quantities for MgII and Al in test file, and updating lines.txt
|
Thanks for the PR. I have been wanting to finally tweak and merge the long-standing PR that integrates the Either way, I figured I'd preserve the backwards compatibility of using the As far as the original |
Coverage Report for CI Build 0Coverage remained the same at 76.053%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
|
I looked briefly and linetools appears to have all of Cashman et al. (2017). However, there are piecemeal updates to this list from other sources like Boisse & Bergeron (2019) and Cashman et al. (2024) that I could not find any evidence for. My two cents: I think there is merit to being able have control over the line data being used and not being dependent on another package if a user prefers not to be. I'd rather see the option to use one's own file stick around, even if the default option ultimately moves to Ok, what would you like to see before this is merged? It sounds like keeping the default |
|
Hi all. My group is currently putting together an update to Cashman+2017. We're aiming to publish an updated line list every 7-10 years. The P II and Ni II values were flagged in the 2017 paper as being particularly in need, so folks were quick to publish on those with updated values. Linetools uses my paper and Morton, but linetools hasn't had an update to its line list in quite some time. I also share the opinion that is powerful to have total control over the line data being used and quite like the current set up. My group is also working on updated data for Si II, which I'd be happy to submit after it's been peer-reviewed. |
|
Thank you both for the detailed responses. This brings up some interesting points. OK, so I agree with you both that we should have a mechanism for the user to specify the line data that they desire. I think this could be to continue with the current paradigm of specifying a text file. A few relevant thoughts (no, I'm not asking Britton to do this in this PR, just trying to think out the best way for all of these relevant issues to get addressed):
Anyway, that was a long comment. I realize we could just merge this PR and be done with it, but I am just seeking feedback from other users of the code to ensure we do the best thing for the long-term accuracy and reproducibility of the results in trident. If you two (or any other users!) have comments or opinions on these thoughts, I'd love to hear them. |
|
@chummels, thanks for the detailed response. I agree some things should be worked out before this is merged. I've got thoughts on most of your points.
I think the current method works very well. File size is not a concern and ascii is most easily human inspectable. It's simple to flip through and find relevant information. Plus, git can more easily track the change history of text files than binary formats. With binary, you don't get a diff.
I'm a huge fan of backward compatibility. As well, keeping the tests passing in trident has always been a challenge. I think the current line list file should continue to be the default, although renaming it something more informative might be a good idea:
I think that's really what this PR is all about, specifically making the most direct connection between researchers like Francie and those that want to consume that output. The whole intention here is to not confine the work to a fork, but to get it into public releases, now and into the future. I would like to merge this PR and then sunset foggie-trident.
I wouldn't want it as the default option for the following reasons: it's only install from source; hasn't had regular releases; it's an added layer of complication if you want to update it and use that right away in trident. Still it's a useful package and I think there is merit to it as an optional feature since it covers a lot of literature and more lines overall. Perhaps a function to output a line list from
Citation functionality is a great idea but will take time. I think you can get a lot of this with a few easy things:
For this specific PR, I am willing to add a docs section on the line list file options and make sure there is something showing how to change the one used at runtime. Would this be sufficient to get it merged? |
This adds the lines database file updated by @fcashman, including a handful of very recent additions. The is the lines file used by the FOGGIE project. Adding this here will allow for ending the project-specific version of trident. There are extra commits here because I have extracted the full history of this file to allow it and its provenance to exist independently of the default lines file and so I could isolate just this file for the PR.
Also, the default file had one duplicate line, which I removed.
There are still a few things to be worked out that I was hoping to start a discussion about here. Firstly, there should probably be some documentation that makes it clear how these two lists are different. From what I understand, the default
lines.txtis mainly populated by data from NIST. I'd be willing to add a note to the header file oflines.txt. As well, perhaps that file should be renamedlines_nist.txtor something. I would be happy to do that and thread that name through the code so that the default still works. Finally, I would add a brief discussion to the narrative documentation.@chummels, would this be acceptable to you?