pyiron_base.maintenance.generic.UpdateMaintenance#
- class pyiron_base.maintenance.generic.UpdateMaintenance(project)[source]#
Bases:
objectMethods
__init__(project)base_to_current(start_version[, project])Runs all updates for pyiron_base to reach the current version.
base_v0_3_to_v0_4([project])Update hdf files written with pyiron_base-0.3.x to pyiron_base-0.4.x
- base_to_current(start_version: str, project=None)[source]#
Runs all updates for pyiron_base to reach the current version.
- Parameters:
start_version (str) – Version of pyiron_base in the mayor.minor[.patch] format from which to start applying the updates.
project (None/project/list/str) – The project(s) to be converted from 0.3 to 0.4 ; default: current project One may provide a pyiron Project, a list of pyiron Projects, or a string containing “all” or a valid path. If “all” is provided, pyiron tries to find all projects using the PROJECT_PATHS defined in the configuration.
- base_v0_3_to_v0_4(project=None)[source]#
Update hdf files written with pyiron_base-0.3.x to pyiron_base-0.4.x
pyiron_base<=0.3.9 has a bug that writes all arrays with dtype=object even numeric ones. As a fix pyiron_base=0.4.0 introduces a conversion when reading such arrays, but does not automatically save them. This conversion script simply goes over all jobs and rewrites their HDF5 files, since it’s read with the correct dtype, this then writes this correct dtype.
- Parameters:
project (None/project/list/str) – The project(s) to be converted from 0.3 to 0.4 ; default: current project One may provide a pyiron Project, a list of pyiron Projects, or a string containing “all” or a valid path. If “all” is provided, pyiron tries to find all projects using the PROJECT_PATHS defined in the configuration.