-
Notifications
You must be signed in to change notification settings - Fork 865
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
Merge ElementBase
into Element
?
#2999
Comments
Why was |
I see the mention for API use. Perhaps it was used to define a class for intercalant elements? |
I think it was to get nested as_dict / from_dict to work properly. So the problem was that all the classes in emmet that had these classes required very custom construction and I wanted to have a a definition of these classes that behaved more like dataclasses so serialization was less troublesome. There were many times where the objects serialized only when they were top level. |
@jmmshn Thanks for the context! I'll add this to the |
@shyuep Should we merge
ElementBase
intoElement
? It saysElementBase
has no enum values so it can be subclassed but it isn't actually subclassed anywhere inpymatgen
. Seems cleaner to only have anElement
class.pymatgen/pymatgen/core/periodic_table.py
Lines 30 to 33 in 3d4d160
The text was updated successfully, but these errors were encountered: