Right now Atom uses getattr to retrieve atomic data from the periodic_table module. It assumes that the dictionary keys in periodic_table are reasonable attribute names, which is incorrect. This needs to be resolved, in any of the following ways.
Rename the keys in periodic_table. I'm not a fan of this, because their current keys maximize readability imo.
Add an if/elif/else chain to getattr. I'm not a huge fan of this either, because if/elif/else chains are annoying to debug and just look ugly.
Use a dictionary in getattr. This would map from the expected attribute names to the dictionary keys. This would be fine.
Right now Atom uses getattr to retrieve atomic data from the periodic_table module. It assumes that the dictionary keys in periodic_table are reasonable attribute names, which is incorrect. This needs to be resolved, in any of the following ways.
I'd strongly prefer option 3