pyiron_base.maintenance.generic.add_module_conversion#
- pyiron_base.maintenance.generic.add_module_conversion(old: str, new: str)[source]#
Add a new module conversion.
After setting up a conversion, call
Project.maintenance.local.update_hdf_types()to rewrite the HDF5 files to make this change and allow loading of previously saved objects.- Parameters:
old (str) – path to module that previously defined objects in storage
new (str) – path to module that should be imported instead
- Raises:
ValueError – if an entry for old already exists and does not point to new.