ConfigurationSectionTrait
- class ase2sprkkr.sprkkr.configuration.ConfigurationSectionTrait[source]
Class hierarchy
Constructor
- __init__()
- set_from_atoms(atoms, io_data=None)[source]
Set the sections’ values of the potential according to the given ASE atoms object.
- Parameters:
atoms (Atoms | None) – The atoms object, from which the data will be set.
io_data (WriteIoData | None) – The additional (in the time of the creation frozen) state of the atoms object, that contains e.g. numbering of the sites, atomic types etc. If it is not set, it is created from the atoms.
validate (bool or str) – If False, do not validate the values String value: accepts any of values accepted by
why
argument ofGrammarType.validate
True (default) means full validation: i.e. the same assave
.
- _set_from_atoms(atoms, io_data)[source]
Set the sections’ values of the potential according to the given ASE atoms object. Unlike the non_underscored routine, this one requires the io_data to be set.
- Parameters:
atoms (SPRKKRAtoms | None)
io_data (WriteIoData)