-
Notifications
You must be signed in to change notification settings - Fork 874
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
[Breaking/Fix] Skip isotopes when iterating through core.Element
#4180
base: master
Are you sure you want to change the base?
[Breaking/Fix] Skip isotopes when iterating through core.Element
#4180
Conversation
core.Element
core.Element
9c08070
to
419fda4
Compare
I agree isotopes shouldn't appear as part of default behavior. |
That was an oversight on my part, thanks for the fix! Also agree that enumerating over elements shouldn't list isotopes. Maybe adding a method to |
No problem at all, cannot blame anyone, it's the test that is missing, together we improve test coverage :)
Fair point, is current implementation looking good to you @esoteric-ephemera (I don't have much experience overwriting an Element.named_isotopes # ---> (Element.D, Element.T) |
@janosh I believe you're very experienced with |
Summary
core.Element
, to fix Why isotopes of hydrogen are considered when enumerating through `Element` #4178, rationale:Element
to behave similarly to looping through the periodic table, i.e. isotopes should not sneak in here, do you like this idea @esoteric-ephemera?property
Element.named_isotopes
for all named_isotopes so far.core.periodic_table
docstring (remove non-existentPeriodicTable
class).This would be a breaking change (also might be called a fix), so comments are hugely appreciated.
Before
Now (nothing special, just skip isotopes of hydrogen)