-
Notifications
You must be signed in to change notification settings - Fork 114
Change expected_impurities to excluded_impurities in plasma_composition_from_IMAS #1806
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
base: main
Are you sure you want to change the base?
Conversation
|
@Nush395 could you also review this one please? |
ebae3bf to
e9458b8
Compare
e94622d to
d61a1c8
Compare
d61a1c8 to
f2181d3
Compare
|
@Nush395 : Should these new functions go into |
Sorry for the slow reply. I think moving into |
Closes IMAS plasma composition surprising behaviour #1789 Parse all ions by default to avoid ignoring ions without the user knowing Update imas sim_test example correctly parse ions Slight change of error message Add comment for str(ion) cast Change default main_ion_symbols to None separate function to validate main_ions presence
f2181d3 to
f7ff91a
Compare
|
Ok I moved the files and add small unit tests now they are in separate module ! Also rebased onto main and semi-squashed it. Let me know if there is still any change to make |
Closes #1789
Parse all ions by default to avoid ignoring ions without the user knowing.
Changes:
expected_impuritiestoexcluded_impuritiesarg. Now parse all ions in the IDS except those inexcluded_impurities._validate_ids_ionshelper function to validate that all parsed ions have recognized TORAX symbols and raise informative error if not