pyiron.atomistics.job.structurecontainer module¶
-
class
pyiron.atomistics.job.structurecontainer.StructureContainer(project, job_name)[source]¶ Bases:
pyiron.atomistics.job.atomistic.AtomisticGenericJobContainer to save a list of structures in HDF5 together with tags.
Add new structures with
append(), they are added tostructure_lst. The HDF5 is written whenrun()is called.-
append(structure_or_job)[source]¶ Add new structure to structure list.
The added structure will available in
structure_lst. If the structure is added via a job, retrieve the latest structure and add its id topyiron.atomistics.generic.Atoms.info.- Parameters
structure_or_job (
AtomisticGenericJob/Atoms) – ifAtomisticGenericJobadd fromget_structure(), otherwise add just the givenAtoms- Returns
item added to
structure_lst- Return type
dict
-
collect_output()[source]¶ Collect the output files of the external executable and store the information in the HDF5 file. This method has to be implemented in the individual hamiltonians.
-
from_hdf(hdf=None, group_name=None)[source]¶ Recreates instance from the hdf5 file :param hdf: Path to the hdf5 file :type hdf: str :param group_name: Name of the group which contains the object :type group_name: str
-
run_if_interactive()[source]¶ For jobs which executables are available as Python library, those can also be executed with a library call instead of calling an external executable. This is usually faster than a single core python job.
-
property
structure¶ first (or only) structure set in the container
- Setter
Atoms,AtomisticGenericJobif a job is given take the last structure and add the job id to itspyiron.atomistics.structure.Atoms.info- Type
-