[Breaking/Fix] Skip isotopes when iterating through core.Element#4180
[Breaking/Fix] Skip isotopes when iterating through core.Element#4180shyuep merged 18 commits intomaterialsproject:masterfrom
core.Element#4180Conversation
core.Elementcore.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:Elementto behave similarly to looping through the periodic table, i.e. isotopes should not sneak in here, do you like this idea @esoteric-ephemera?propertyElement.named_isotopesfor all named_isotopes so far.core.periodic_tabledocstring (remove non-existentPeriodicTableclass).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)