-
Notifications
You must be signed in to change notification settings - Fork 2
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
Addition of Named Isotopes #14
Comments
Thank you for your suggestion regarding the addition of element symbols for named isotopes. Currently, the atomic weight data in However, you can extend the file def atomic_weight(element):
atomic_weight_table = {
"H": 1.008, # average atomic weight for hydrogen in accordance with Pure Appl. Chem., 2016, 88, 265-291
"D": 2.014, # atomic weight for deuterium
"T": 3.016, # atomic weight for tritium
"Hp": 1.00784, # atomic weight for protium, with a custom atomic symbol (not IUPAC compliant)
# ... rest of the elements
}
# return the atomic weight of the element symbol passed to the function, False if the element symbol does not exist
return float(atomic_weight_table[element]) if element in atomic_weight_table else False This will allow you to specify deuterium and tritium in your formulas and calculations. For a future release, I am planning to add support for user-defined abbreviations in chemical formulas, such as Ph for C6H5. In this context, I will also consider how to better support isotopes, as this deserves a more general approach. Thanks again for your feedback! |
Would you consider adding element symbols of named isotopes, specifically Deuterium (D) and Tritium (T) to the atomic weight table?
The text was updated successfully, but these errors were encountered: