SingleDefConc#
- class SingleDefConc(name, charge, conc)[source]#
Bases:
MSONableObject to store defect concentrations data. It is also subscribtable like a dictionary.
- Parameters:
name (str) – Name of defect specie.
charge (int) – Charge of defect specie.
conc (float) – Concentration value.
Methods
as_dictA JSON serializable dict representation of an object.
from_dictReconstruct an MSONable object from a dict.
Returns dictionary-like key-value pairs of the object's attributes.
Returns dictionary-like keys of the object's attributes.
loadLoad an instance from a JSON file written by
save().saveSerialize the instance to JSON on disk, pickling fields if needed.
to_jsonReturns a json string representation of the MSONable object.
unsafe_hashReturn a hash of the current object.
validate_monty_v1Pydantic validator with correct signature for pydantic v1.x.
validate_monty_v2Pydantic validator with correct signature for pydantic v2.x.
Returns dictionary-like values of the object's attributes.
Attributes
REDIRECT