generated from pyiron/pyiron_module_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I updated the examples for LAMMPS, SPHInX and VASP to directly read the HDF5 files to a dictionary and afterwards write the dictionary to an HDF5 file again. The LAMMPS and SPHInX examples both work on mybinder:
- https://github.com/pyiron-dev/pyiron-hdf5-format/blob/main/lammps.ipynb
- https://github.com/pyiron-dev/pyiron-hdf5-format/blob/main/sphinxdft.ipynb
- https://github.com/pyiron-dev/pyiron-hdf5-format/blob/main/vasp.ipynb
The process is the same for all three:
- A calculation is set up and executed.
- The content of the whole job including the output is read to a dictionary.
- The output schema is extracted, this schema is required to create the HDF5 file later on and should be developed by the person creating the job_type.
- The original HDF5 file is deleted and a new HDF5 file is written based on the schema for the particular job.
- The job object is reloaded from the newly written HDF5 file and the input and output are validated.
Does this address the needs you had in terms of easy access to the pyiron HDF5 files?
EDIT: Add VASP example.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels