py-modelrunner 0.20.1__tar.gz → 0.20.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/.github/workflows/build.yml +8 -3
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/.github/workflows/check_docs.yml +1 -1
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/.github/workflows/coverage_report.yml +12 -4
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/.github/workflows/release_pip.yml +2 -2
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/PKG-INFO +21 -8
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/README.md +18 -6
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/_version.py +3 -3
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/templates/sbatch.jinja +1 -2
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/templates/srun.jinja +1 -2
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/base.py +4 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/py_modelrunner.egg-info/PKG-INFO +21 -8
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/py_modelrunner.egg-info/scm_file_list.json +163 -163
- py_modelrunner-0.20.3/py_modelrunner.egg-info/scm_version.json +8 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/pyproject.toml +2 -1
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/test_compatibility.py +3 -1
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/helpers/storage.py +1 -5
- py_modelrunner-0.20.3/tests/requirements.txt +4 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/storage/test_storage_generic.py +14 -11
- py_modelrunner-0.20.1/py_modelrunner.egg-info/scm_version.json +0 -8
- py_modelrunner-0.20.1/tests/requirements.txt +0 -4
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/.gitignore +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/.readthedocs.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/LICENSE +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/Makefile +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/build_all.sh +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/requirements.txt +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/source/.gitignore +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/source/conf.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/source/examples.rst +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/source/index.rst +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/source/installation.rst +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/source/parse_examples.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/source/run_autodoc.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/source/sphinx_simplify_typehints.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/docs/source/user_manual.rst +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/io_hdf.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/io_json.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/io_yaml.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/model_class.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/model_decorator.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/model_function.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/model_storage_output.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/read_many.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/script_custom_func.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/script_function.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/script_many_classes.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/script_minimal.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/script_model_class.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/submit_function.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/submit_many_func.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/submit_many_iter.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/examples/submit_shebang.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/.gitignore +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/__init__.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/__main__.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/config.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/model/__init__.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/model/base.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/model/factory.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/model/parameters.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/py.typed +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/__init__.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/__main__.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/compatibility/__init__.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/compatibility/triage.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/compatibility/version0.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/compatibility/version1.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/compatibility/version2.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/job.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/launch.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/results.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/templates/background.jinja +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/templates/foreground.jinja +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/run/templates/qsub.jinja +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/__init__.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/access_modes.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/attributes.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/__init__.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/_zarr2.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/_zarr3.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/hdf.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/json.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/memory.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/text_base.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/utils.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/yaml.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/backend/zarr.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/group.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/tools.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/trajectory.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/storage/utils.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/modelrunner/utils.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/py_modelrunner.egg-info/SOURCES.txt +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/py_modelrunner.egg-info/dependency_links.txt +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/py_modelrunner.egg-info/not-zip-safe +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/py_modelrunner.egg-info/requires.txt +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/py_modelrunner.egg-info/top_level.txt +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/requirements.txt +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/requirements_full.txt +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/create_compatibility_files.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/format_code.sh +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/performance_hdf5_zarr.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/requirements.txt +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/run_tests.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/tests_all.sh +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/tests_codestyle.sh +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/tests_coverage.sh +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/tests_debug.sh +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/tests_parallel.sh +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/tests_run.sh +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/scripts/tests_types.sh +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/setup.cfg +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/0/result.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/0/result.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/0/result.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/0/result.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/_dict.zarr +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/_object.zarr +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/array.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/array.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/array.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/array.zarr +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/array_col.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/array_col.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/array_col.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/array_col.zarr +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/dict.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/dict.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/dict.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/object.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/object.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/1/object.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array_col.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array_col.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array_col.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array_col.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/array_col.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/dict.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/dict.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/dict.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/dict.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/dict.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/nested.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/nested.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/nested.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/nested.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/2/nested.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array_col.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array_col.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array_col.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array_col.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/array_col.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/dict.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/dict.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/dict.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/dict.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/dict.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array_col.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array_col.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array_col.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array_col.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_array_col.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_dict.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_dict.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_dict.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_dict.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_dict.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_nested.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_nested.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_nested.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_nested.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/model_nested.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/nested.hdf +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/nested.json +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/nested.pkl +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/nested.yaml +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/compatibility/3/nested.zip +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/conftest.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/helpers/__init__.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/helpers/asserts.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/model/scripts/empty.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/model/scripts/function.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/model/scripts/function_main.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/model/scripts/function_marked.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/model/scripts/make_model.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/model/scripts/make_model_class.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/model/scripts/make_model_marked.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/model/test_model.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/model/test_parameters.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/run/scripts/custom.jinja +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/run/scripts/fail.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/run/scripts/function.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/run/scripts/print.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/run/scripts/script.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/run/test_job.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/run/test_results.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/run/test_run_main.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/storage/test_group.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/storage/test_register_action.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/storage/test_storage_special.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/storage/test_trajectory.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/storage/test_utils.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/test_config.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/test_examples.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/test_main.py +0 -0
- {py_modelrunner-0.20.1 → py_modelrunner-0.20.3}/tests/test_version.py +0 -0
|
@@ -9,20 +9,25 @@ jobs:
|
|
|
9
9
|
strategy:
|
|
10
10
|
matrix:
|
|
11
11
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
12
|
-
python-version: ['3.12', '3.
|
|
12
|
+
python-version: ['3.12', '3.15']
|
|
13
13
|
|
|
14
14
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
15
|
+
- uses: actions/checkout@v7
|
|
16
16
|
|
|
17
17
|
- name: Set up Python ${{ matrix.python-version }}
|
|
18
|
-
uses: actions/setup-python@
|
|
18
|
+
uses: actions/setup-python@v7
|
|
19
19
|
with:
|
|
20
20
|
python-version: ${{ matrix.python-version }}
|
|
21
21
|
|
|
22
22
|
- name: Install dependencies
|
|
23
|
+
# install all requirements. Note that the full requirements are installed separately
|
|
24
|
+
# so the job does not fail if one of the packages cannot be installed. This allows
|
|
25
|
+
# testing the package for newer python version even when some of the optional
|
|
26
|
+
# packages are not yet available.
|
|
23
27
|
run: |
|
|
24
28
|
python -m pip install --upgrade pip
|
|
25
29
|
pip install -r requirements.txt
|
|
30
|
+
cat requirements_full.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -I % sh -c "pip install % || true"
|
|
26
31
|
pip install -r tests/requirements.txt
|
|
27
32
|
|
|
28
33
|
- name: Install optional dependencies
|
|
@@ -11,25 +11,33 @@ jobs:
|
|
|
11
11
|
python-version: [3.12]
|
|
12
12
|
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v7
|
|
15
|
+
|
|
15
16
|
- name: Set up Python ${{ matrix.python-version }}
|
|
16
|
-
uses: actions/setup-python@
|
|
17
|
+
uses: actions/setup-python@v7
|
|
17
18
|
with:
|
|
18
19
|
python-version: ${{ matrix.python-version }}
|
|
20
|
+
|
|
19
21
|
- name: Install dependencies
|
|
22
|
+
# install all requirements. Note that the full requirements are installed separately
|
|
23
|
+
# so the job does not fail if one of the packages cannot be installed. This allows
|
|
24
|
+
# testing the package for newer python version even when some of the optional
|
|
25
|
+
# packages are not yet available.
|
|
20
26
|
run: |
|
|
21
27
|
python -m pip install --upgrade pip
|
|
22
28
|
pip install -r requirements.txt
|
|
29
|
+
cat requirements_full.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -I % sh -c "pip install % || true"
|
|
23
30
|
pip install -r tests/requirements.txt
|
|
24
31
|
|
|
25
32
|
- name: Generate coverage report
|
|
33
|
+
env:
|
|
34
|
+
MPLBACKEND: agg
|
|
26
35
|
run: |
|
|
27
|
-
export MPLBACKEND="agg"
|
|
28
36
|
export PYTHONPATH="${PYTHONPATH}:`pwd`"
|
|
29
37
|
pytest --cov-config=pyproject.toml --cov-report xml:report_coverage.xml --cov=modelrunner tests/
|
|
30
38
|
|
|
31
39
|
- name: Upload coverage to Codecov
|
|
32
|
-
uses: codecov/codecov-action@
|
|
40
|
+
uses: codecov/codecov-action@v7
|
|
33
41
|
with:
|
|
34
42
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
35
43
|
file: ./report_coverage.xml
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py-modelrunner
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.3
|
|
4
4
|
Summary: Python classes for organizing (HPC) simulations
|
|
5
5
|
Author-email: David Zwicker <david.zwicker@ds.mpg.de>
|
|
6
6
|
License: MIT
|
|
@@ -18,7 +18,8 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
-
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
22
|
+
Requires-Python: <3.16,>=3.11
|
|
22
23
|
Description-Content-Type: text/markdown
|
|
23
24
|
License-File: LICENSE
|
|
24
25
|
Requires-Dist: jinja2>=3
|
|
@@ -78,9 +79,9 @@ function with several arguments, like so
|
|
|
78
79
|
|
|
79
80
|
```python
|
|
80
81
|
def main(a: float = 1, b: int = 2, negate: bool = False):
|
|
81
|
-
res = a
|
|
82
|
+
res = a**b
|
|
82
83
|
if negate:
|
|
83
|
-
|
|
84
|
+
res *= -1
|
|
84
85
|
return res
|
|
85
86
|
```
|
|
86
87
|
|
|
@@ -133,8 +134,8 @@ parameters:
|
|
|
133
134
|
```python
|
|
134
135
|
from modelrunner import ModelBase
|
|
135
136
|
|
|
136
|
-
class MyModel(ModelBase): # define custom model
|
|
137
137
|
|
|
138
|
+
class MyModel(ModelBase): # define custom model
|
|
138
139
|
# defines supported parameters with default values
|
|
139
140
|
parameters_default = {"a": 1, "b": 2}
|
|
140
141
|
|
|
@@ -143,7 +144,7 @@ class MyModel(ModelBase): # define custom model
|
|
|
143
144
|
return self.parameters["a"] * self.parameters["b"]
|
|
144
145
|
|
|
145
146
|
|
|
146
|
-
model = MyModel({"a"
|
|
147
|
+
model = MyModel({"a": 3})
|
|
147
148
|
```
|
|
148
149
|
|
|
149
150
|
The last line actually creates an instance of the model with custom parameters.
|
|
@@ -153,10 +154,12 @@ Alternatively, a model can also be defined from a simple function:
|
|
|
153
154
|
```python
|
|
154
155
|
from modelrunner import make_model
|
|
155
156
|
|
|
157
|
+
|
|
156
158
|
@make_model
|
|
157
159
|
def multiply(a=1, b=2):
|
|
158
160
|
return a * b
|
|
159
161
|
|
|
162
|
+
|
|
160
163
|
model = multiply(a=3)
|
|
161
164
|
```
|
|
162
165
|
|
|
@@ -219,10 +222,12 @@ A simple full script displaying this reads
|
|
|
219
222
|
```python
|
|
220
223
|
from modelrunner import make_model, submit_job
|
|
221
224
|
|
|
225
|
+
|
|
222
226
|
@make_model
|
|
223
227
|
def multiply(a=1, b=2):
|
|
224
228
|
return a * b
|
|
225
229
|
|
|
230
|
+
|
|
226
231
|
if __name__ == "__main__":
|
|
227
232
|
submit_job(__file__, parameters={"a": 2}, output="data.hdf5", method="foreground")
|
|
228
233
|
```
|
|
@@ -235,13 +240,17 @@ parameters to conduct a parameter study:
|
|
|
235
240
|
```python
|
|
236
241
|
from modelrunner import make_model, submit_job
|
|
237
242
|
|
|
243
|
+
|
|
238
244
|
@make_model
|
|
239
245
|
def multiply(a=1, b=2):
|
|
240
246
|
return a * b
|
|
241
247
|
|
|
248
|
+
|
|
242
249
|
if __name__ == "__main__":
|
|
243
250
|
for a in range(5):
|
|
244
|
-
submit_job(
|
|
251
|
+
submit_job(
|
|
252
|
+
__file__, parameters={"a": a}, output=f"data_{a}.hdf5", method="foreground"
|
|
253
|
+
)
|
|
245
254
|
```
|
|
246
255
|
|
|
247
256
|
Note that the safe-guard `if __name__ == "__main__"` is absolutely crucial to ensure that
|
|
@@ -254,12 +263,16 @@ We also support submitting multiple jobs of a parameter study:
|
|
|
254
263
|
```python
|
|
255
264
|
from modelrunner import make_model, submit_jobs
|
|
256
265
|
|
|
266
|
+
|
|
257
267
|
@make_model
|
|
258
268
|
def multiply(a=1, b=2):
|
|
259
269
|
return a * b
|
|
260
270
|
|
|
271
|
+
|
|
261
272
|
if __name__ == "__main__":
|
|
262
|
-
submit_jobs(
|
|
273
|
+
submit_jobs(
|
|
274
|
+
__file__, parameters={"a": range(5)}, output_folder="data", method="foreground"
|
|
275
|
+
)
|
|
263
276
|
```
|
|
264
277
|
|
|
265
278
|
Finally, the packages also offers a method to submit a model script to the cluster using
|
|
@@ -36,9 +36,9 @@ function with several arguments, like so
|
|
|
36
36
|
|
|
37
37
|
```python
|
|
38
38
|
def main(a: float = 1, b: int = 2, negate: bool = False):
|
|
39
|
-
res = a
|
|
39
|
+
res = a**b
|
|
40
40
|
if negate:
|
|
41
|
-
|
|
41
|
+
res *= -1
|
|
42
42
|
return res
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -91,8 +91,8 @@ parameters:
|
|
|
91
91
|
```python
|
|
92
92
|
from modelrunner import ModelBase
|
|
93
93
|
|
|
94
|
-
class MyModel(ModelBase): # define custom model
|
|
95
94
|
|
|
95
|
+
class MyModel(ModelBase): # define custom model
|
|
96
96
|
# defines supported parameters with default values
|
|
97
97
|
parameters_default = {"a": 1, "b": 2}
|
|
98
98
|
|
|
@@ -101,7 +101,7 @@ class MyModel(ModelBase): # define custom model
|
|
|
101
101
|
return self.parameters["a"] * self.parameters["b"]
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
model = MyModel({"a"
|
|
104
|
+
model = MyModel({"a": 3})
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
The last line actually creates an instance of the model with custom parameters.
|
|
@@ -111,10 +111,12 @@ Alternatively, a model can also be defined from a simple function:
|
|
|
111
111
|
```python
|
|
112
112
|
from modelrunner import make_model
|
|
113
113
|
|
|
114
|
+
|
|
114
115
|
@make_model
|
|
115
116
|
def multiply(a=1, b=2):
|
|
116
117
|
return a * b
|
|
117
118
|
|
|
119
|
+
|
|
118
120
|
model = multiply(a=3)
|
|
119
121
|
```
|
|
120
122
|
|
|
@@ -177,10 +179,12 @@ A simple full script displaying this reads
|
|
|
177
179
|
```python
|
|
178
180
|
from modelrunner import make_model, submit_job
|
|
179
181
|
|
|
182
|
+
|
|
180
183
|
@make_model
|
|
181
184
|
def multiply(a=1, b=2):
|
|
182
185
|
return a * b
|
|
183
186
|
|
|
187
|
+
|
|
184
188
|
if __name__ == "__main__":
|
|
185
189
|
submit_job(__file__, parameters={"a": 2}, output="data.hdf5", method="foreground")
|
|
186
190
|
```
|
|
@@ -193,13 +197,17 @@ parameters to conduct a parameter study:
|
|
|
193
197
|
```python
|
|
194
198
|
from modelrunner import make_model, submit_job
|
|
195
199
|
|
|
200
|
+
|
|
196
201
|
@make_model
|
|
197
202
|
def multiply(a=1, b=2):
|
|
198
203
|
return a * b
|
|
199
204
|
|
|
205
|
+
|
|
200
206
|
if __name__ == "__main__":
|
|
201
207
|
for a in range(5):
|
|
202
|
-
submit_job(
|
|
208
|
+
submit_job(
|
|
209
|
+
__file__, parameters={"a": a}, output=f"data_{a}.hdf5", method="foreground"
|
|
210
|
+
)
|
|
203
211
|
```
|
|
204
212
|
|
|
205
213
|
Note that the safe-guard `if __name__ == "__main__"` is absolutely crucial to ensure that
|
|
@@ -212,12 +220,16 @@ We also support submitting multiple jobs of a parameter study:
|
|
|
212
220
|
```python
|
|
213
221
|
from modelrunner import make_model, submit_jobs
|
|
214
222
|
|
|
223
|
+
|
|
215
224
|
@make_model
|
|
216
225
|
def multiply(a=1, b=2):
|
|
217
226
|
return a * b
|
|
218
227
|
|
|
228
|
+
|
|
219
229
|
if __name__ == "__main__":
|
|
220
|
-
submit_jobs(
|
|
230
|
+
submit_jobs(
|
|
231
|
+
__file__, parameters={"a": range(5)}, output_folder="data", method="foreground"
|
|
232
|
+
)
|
|
221
233
|
```
|
|
222
234
|
|
|
223
235
|
Finally, the packages also offers a method to submit a model script to the cluster using
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.20.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 20,
|
|
21
|
+
__version__ = version = '0.20.3'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 20, 3)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g083e7f167'
|
|
@@ -10,13 +10,12 @@
|
|
|
10
10
|
#SBATCH --job-name={{ JOB_NAME }}
|
|
11
11
|
# Queue (Partition):
|
|
12
12
|
{% if CONFIG['partition'] is defined %}
|
|
13
|
-
#SBATCH
|
|
13
|
+
#SBATCH --partition {{ CONFIG['partition'] }}
|
|
14
14
|
{% endif %}
|
|
15
15
|
# Set max. runtime
|
|
16
16
|
{% if CONFIG['time'] is defined %}
|
|
17
17
|
#SBATCH --time={{ TIME }}
|
|
18
18
|
{% endif %}
|
|
19
|
-
#SBATCH --time=12:00:00
|
|
20
19
|
|
|
21
20
|
hostname
|
|
22
21
|
echo $JOB_ID
|
|
@@ -10,13 +10,12 @@
|
|
|
10
10
|
#SBATCH --job-name={{ JOB_NAME }}
|
|
11
11
|
# Queue (Partition):
|
|
12
12
|
{% if CONFIG['partition'] is defined %}
|
|
13
|
-
#SBATCH
|
|
13
|
+
#SBATCH --partition {{ CONFIG['partition'] }}
|
|
14
14
|
{% endif %}
|
|
15
15
|
# Set max. runtime
|
|
16
16
|
{% if CONFIG['time'] is defined %}
|
|
17
17
|
#SBATCH --time={{ TIME }}
|
|
18
18
|
{% endif %}
|
|
19
|
-
#SBATCH --time=12:00:00
|
|
20
19
|
|
|
21
20
|
hostname
|
|
22
21
|
echo $JOB_ID
|
|
@@ -38,6 +38,10 @@ from .utils import encode_class
|
|
|
38
38
|
if TYPE_CHECKING:
|
|
39
39
|
from .group import StorageGroup
|
|
40
40
|
|
|
41
|
+
|
|
42
|
+
# we allow unpickling since we otherwise cannot store arbitrary Python objects
|
|
43
|
+
numcodecs.pickles.ALLOW_UNSAFE_PICKLE_DECODE = True
|
|
44
|
+
|
|
41
45
|
_base_logger = logging.getLogger(__name__.rsplit(".", 1)[0])
|
|
42
46
|
""":class:`logging.Logger`: Base logger for fields."""
|
|
43
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py-modelrunner
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.3
|
|
4
4
|
Summary: Python classes for organizing (HPC) simulations
|
|
5
5
|
Author-email: David Zwicker <david.zwicker@ds.mpg.de>
|
|
6
6
|
License: MIT
|
|
@@ -18,7 +18,8 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
-
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
22
|
+
Requires-Python: <3.16,>=3.11
|
|
22
23
|
Description-Content-Type: text/markdown
|
|
23
24
|
License-File: LICENSE
|
|
24
25
|
Requires-Dist: jinja2>=3
|
|
@@ -78,9 +79,9 @@ function with several arguments, like so
|
|
|
78
79
|
|
|
79
80
|
```python
|
|
80
81
|
def main(a: float = 1, b: int = 2, negate: bool = False):
|
|
81
|
-
res = a
|
|
82
|
+
res = a**b
|
|
82
83
|
if negate:
|
|
83
|
-
|
|
84
|
+
res *= -1
|
|
84
85
|
return res
|
|
85
86
|
```
|
|
86
87
|
|
|
@@ -133,8 +134,8 @@ parameters:
|
|
|
133
134
|
```python
|
|
134
135
|
from modelrunner import ModelBase
|
|
135
136
|
|
|
136
|
-
class MyModel(ModelBase): # define custom model
|
|
137
137
|
|
|
138
|
+
class MyModel(ModelBase): # define custom model
|
|
138
139
|
# defines supported parameters with default values
|
|
139
140
|
parameters_default = {"a": 1, "b": 2}
|
|
140
141
|
|
|
@@ -143,7 +144,7 @@ class MyModel(ModelBase): # define custom model
|
|
|
143
144
|
return self.parameters["a"] * self.parameters["b"]
|
|
144
145
|
|
|
145
146
|
|
|
146
|
-
model = MyModel({"a"
|
|
147
|
+
model = MyModel({"a": 3})
|
|
147
148
|
```
|
|
148
149
|
|
|
149
150
|
The last line actually creates an instance of the model with custom parameters.
|
|
@@ -153,10 +154,12 @@ Alternatively, a model can also be defined from a simple function:
|
|
|
153
154
|
```python
|
|
154
155
|
from modelrunner import make_model
|
|
155
156
|
|
|
157
|
+
|
|
156
158
|
@make_model
|
|
157
159
|
def multiply(a=1, b=2):
|
|
158
160
|
return a * b
|
|
159
161
|
|
|
162
|
+
|
|
160
163
|
model = multiply(a=3)
|
|
161
164
|
```
|
|
162
165
|
|
|
@@ -219,10 +222,12 @@ A simple full script displaying this reads
|
|
|
219
222
|
```python
|
|
220
223
|
from modelrunner import make_model, submit_job
|
|
221
224
|
|
|
225
|
+
|
|
222
226
|
@make_model
|
|
223
227
|
def multiply(a=1, b=2):
|
|
224
228
|
return a * b
|
|
225
229
|
|
|
230
|
+
|
|
226
231
|
if __name__ == "__main__":
|
|
227
232
|
submit_job(__file__, parameters={"a": 2}, output="data.hdf5", method="foreground")
|
|
228
233
|
```
|
|
@@ -235,13 +240,17 @@ parameters to conduct a parameter study:
|
|
|
235
240
|
```python
|
|
236
241
|
from modelrunner import make_model, submit_job
|
|
237
242
|
|
|
243
|
+
|
|
238
244
|
@make_model
|
|
239
245
|
def multiply(a=1, b=2):
|
|
240
246
|
return a * b
|
|
241
247
|
|
|
248
|
+
|
|
242
249
|
if __name__ == "__main__":
|
|
243
250
|
for a in range(5):
|
|
244
|
-
submit_job(
|
|
251
|
+
submit_job(
|
|
252
|
+
__file__, parameters={"a": a}, output=f"data_{a}.hdf5", method="foreground"
|
|
253
|
+
)
|
|
245
254
|
```
|
|
246
255
|
|
|
247
256
|
Note that the safe-guard `if __name__ == "__main__"` is absolutely crucial to ensure that
|
|
@@ -254,12 +263,16 @@ We also support submitting multiple jobs of a parameter study:
|
|
|
254
263
|
```python
|
|
255
264
|
from modelrunner import make_model, submit_jobs
|
|
256
265
|
|
|
266
|
+
|
|
257
267
|
@make_model
|
|
258
268
|
def multiply(a=1, b=2):
|
|
259
269
|
return a * b
|
|
260
270
|
|
|
271
|
+
|
|
261
272
|
if __name__ == "__main__":
|
|
262
|
-
submit_jobs(
|
|
273
|
+
submit_jobs(
|
|
274
|
+
__file__, parameters={"a": range(5)}, output_folder="data", method="foreground"
|
|
275
|
+
)
|
|
263
276
|
```
|
|
264
277
|
|
|
265
278
|
Finally, the packages also offers a method to submit a model script to the cluster using
|