You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m working on issue #409 to clean up how J values are handled in CMFGEN data. Currently, in the cross_sections_squeeze function (carsus/io/cmfgen.py), J values are removed from ion_levels["label"] with the following code:
python
if ion_levels["label"].str.contains(r"\[").any():
# Remove the "[J]" term from J-splitted levels labels
ion_levels["label"] = ion_levels["label"].str.rstrip("]")
# Drop the [J] term completely to avoid shape mismatch. Something to perhaps store in the future
ion_levels["label"] = ion_levels["label"].str.split("[", expand=True)[0]
However, J values are not stored anywhere.
I have a few questions regarding how to proceed:
Where should J values be stored? Should I add a new "J" column in ion_levels, or should they be integrated into level_number?
How should J values be stored? As integers/floats or as strings?
Where is ion_levels originally created? I need to modify it to store J values but want to confirm the correct file and function.
Currently we completely drop the J values in a rather messy way. We should store and (potentially) use them.
The text was updated successfully, but these errors were encountered: