rompy 0.5.2__tar.gz → 0.5.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.
- {rompy-0.5.2 → rompy-0.5.3}/PKG-INFO +1 -1
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/index.rst +1 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/__init__.py +1 -2
- {rompy-0.5.2 → rompy-0.5.3}/rompy/cli.py +121 -13
- {rompy-0.5.2 → rompy-0.5.3}/rompy/model.py +3 -2
- {rompy-0.5.2 → rompy-0.5.3}/rompy.egg-info/PKG-INFO +1 -1
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_cli_config.py +49 -0
- {rompy-0.5.2 → rompy-0.5.3}/LICENSE +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/MANIFEST.in +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/README.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/Makefile +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/make.bat +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/api.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/backend_reference.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/backends.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/cli.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/conf.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/core_concepts.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/demo.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/developer/architecture/selection_patterns.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/developer/index.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/formatting_and_logging.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/models.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/backend_examples.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/demo.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/oceanum_example.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/physics.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/schism_procedural.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/.gitignore +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/boundary/boundnest1.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/boundary/boundspec_segment.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/boundary/boundspec_side.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/components/output.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/example_declarative.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/example_declarative.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/example_procedural.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/example_sensitivity.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan/example_sensitivity.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan-config-components.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/swan-config-components.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/templates/swan-physics-predefined/{{runtime.run_id}}/INPUT +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/notebooks/templates_demo.ipynb +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/plugin_architecture/execution.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/plugin_architecture.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/quickstart.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/schism/backend_framework.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/schism/backend_tutorial.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/schism/boundary_conditions.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/schism/hotstart.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/schism/index.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/components/boundary.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/components/cgrid.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/components/group.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/components/inpgrid.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/components/lockup.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/components/numerics.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/components/output.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/components/physics.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/components/startup.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/index.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/base.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/boundary.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/cgrid.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/numerics.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/output.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/physics.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/readgrid.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/spectrum.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/startup.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/subcomponents/time.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/docs/source/swan/types.rst +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/backends/01_basic_local_run.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/backends/02_docker_run.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/backends/03_custom_postprocessor.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/backends/04_complete_workflow.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/configs/docker_backend.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/configs/docker_backend_examples.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/configs/local_backend.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/configs/local_backend_examples.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/configs/pipeline_config.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/configs/validate_configs.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/examples/quickstart_backend_example.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/components/swan-config-components.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/01_tidal_only/basic_tidal.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/01_tidal_only/extended_tidal.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/01_tidal_only/tidal_with_mdt.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/01_tidal_only/tidal_with_mdt_const.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/01_tidal_only/tidal_with_potential.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/01_tidal_only/tide_wave.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/02_hybrid/full_hybrid.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/02_hybrid/hybrid_elevation.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/03_river/multi_river.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/03_river/simple_river.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/04_nested/nested_with_tides.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/05_advanced/mixed_boundaries.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo_nml.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo_nml_3d_lsc2.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo_nml_3d_lsc2_enhanced.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo_nml_3d_nontidal_velocities.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo_nml_3d_nontidal_velocities_enhanced.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo_nml_3d_tidal_velocities.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo_nml_3d_tidal_velocities_enhanced.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo_nml_enhanced.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/demo_tides_only.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/run_boundary_conditions_examples.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/test_backend_examples.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/swan/example_declarative.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/notebooks/swan/example_sensitivity.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/pyproject.toml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/.github/default.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/_version.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/archive/filesystem.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/archive/model.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/archive/test_filesystem.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/archive/test_model.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/archive/test_transform.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/archive/transform.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/backends/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/backends/config.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/catalogs/aodn.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/catalogs/bom.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/catalogs/csiro.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/catalogs/dot_wa.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/catalogs/gfs.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/catalogs/master.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/catalogs/oceanum.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/configuration/base.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/configuration/swan.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/config.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/data.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/filters.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/grid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/logging/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/logging/config.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/logging/formatter.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/logging/logger.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/render.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/source.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/spectrum.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/time.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/core/types.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/formatting.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/pipeline/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/plotting.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/postprocess/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/run/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/run/docker.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/bctides.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/boundary_conditions.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/boundary_core.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/config.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/config_legacy.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/config_plotting.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/config_plotting_boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/config_plotting_tides.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/data.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/grid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/hotstart.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/interface.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/basemodel.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/claude_full/ice.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/claude_full/icm.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/claude_full/mice.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/claude_full/param.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/claude_full/sediment.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/claude_full/wwminput_WW3.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/claude_full/wwminput_spectra.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/cosine.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/example_nml.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/generate_models.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/generate_models_llm.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/generate_models_llm_sections.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/generate_models_llmv2.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/handwritten/cosine.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/handwritten/ice.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/handwritten/icm.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/handwritten/param.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/handwritten/sediment.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/ice.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/icm.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/mice.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/param.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/sample_inputs/create_model.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/sample_inputs/render.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/schism.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/sediment.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/sflux.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/wwminput.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/wwminput_WW3.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/namelists/wwminput_spectra.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/numpy_types.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/tides_enhanced.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/utils.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/schism/vgrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/base.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/cgrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/group.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/inpgrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/lockup.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/numerics.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/output.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/physics.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/components/startup.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/config.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/data.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/grid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/interface.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/legacy.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/base.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/numerics.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/output.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/physics.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/readgrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/spectrum.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/startup.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/subcomponents/time.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/swan/types.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/base/{{runtime.staging_dir}}/INPUT +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/base/{{runtime.staging_dir}}/datasets/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/base/{{runtime.staging_dir}}/outputs/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schism/{{runtime.staging_dir}}/README +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schism/{{runtime.staging_dir}}/datasets/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schism/{{runtime.staging_dir}}/outputs/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schism/{{runtime.staging_dir}}/sflux/README +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schismcsiro/{{runtime.staging_dir}}/README +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schismcsiro/{{runtime.staging_dir}}/datasets/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schismcsiro/{{runtime.staging_dir}}/outputs/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schismcsiro/{{runtime.staging_dir}}/param.nml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schismcsiro/{{runtime.staging_dir}}/sflux/README +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/schismcsiro/{{runtime.staging_dir}}/wwminput.nml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/swan/cookiecutter.json +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/swan/{{runtime.staging_dir}}/INPUT +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/swan/{{runtime.staging_dir}}/datasets/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/swan/{{runtime.staging_dir}}/out.loc +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/swan/{{runtime.staging_dir}}/outputs/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/swanbasic/{{runtime.staging_dir}}/INPUT +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/swanbasic/{{runtime.staging_dir}}/datasets/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/swanbasic/{{runtime.staging_dir}}/outputs/readme.md +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/templates/swancomp/{{runtime.staging_dir}}/INPUT +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy/utils.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy.egg-info/SOURCES.txt +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy.egg-info/dependency_links.txt +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy.egg-info/entry_points.txt +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy.egg-info/requires.txt +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/rompy.egg-info/top_level.txt +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/scripts/ci/environment-pip.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/setup.cfg +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/backends/test_enhanced_backends.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/backends/test_modelrun_pydantic_integration.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/backends/test_pydantic_backends.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/core/test_logging.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/data/catalog.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/data/wind.csv +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/example_configs/make_full_yaml.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/example_configs/test.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/integration/test_docker_backend.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/configs/csiro.yaml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/conftest.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/functional/test_model_setup.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/integration/test_namelist.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/integration/test_workflows.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/simple_bctides_test.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_bctides_format_simple.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_bctides_standalone.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_boundary_conditions.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_boundary_plotting.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_boundary_plotting_updated.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_compare_gr3_generation.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_config_schema.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_data/download_era5_datamesh.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_data/download_hycom.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_data/download_tides.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_enhanced_tidal_boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_grid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_hotstart.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_hotstart_integration.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_namelists.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_nml.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_pylibs_boundaries.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_pylibs_boundaries_expanded.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_schism_csiro.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_schism_csiro_migration.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_schism_data.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_schism_nml.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_sflux_plotting.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_tidal_boundary_consistency.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_vgridgenerators.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/test_visualization.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/unit/test_boundary_tides.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/unit/test_grid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/unit/test_schism_boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/unit/test_tides_enhanced.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/unit/test_vgrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/utils.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/schism/utils_pylibs.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/components/test_base.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/components/test_boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/components/test_cgrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/components/test_inpgrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/components/test_lockup.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/components/test_output.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/components/test_physics.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/components/test_startup.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/subcomponents/test_subcomponent_boundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/subcomponents/test_subcomponent_physics.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/subcomponents/test_subcomponent_readgrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/subcomponents/test_subcomponent_shape.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/subcomponents/test_subcomponent_time.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/swan_model.yml +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/test_swan_config.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/test_swan_model.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/swan/test_swan_types.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_backend_examples.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_basegrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_basemodel.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_data.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_intake_driver.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_serilization.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_swan_data_formatting.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_swanbasic.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_swanboundary.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_swandata.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_swangrid.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_swanmodel.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_swantemplate.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_templates.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_time.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_utils/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/test_utils/logging.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/utils/__init__.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/utils/compare.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/tests/utils/schism.py +0 -0
- {rompy-0.5.2 → rompy-0.5.3}/versioneer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rompy
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
4
4
|
Summary: Relocatable Ocean Modelling in PYthon (rompy)
|
|
5
5
|
Author-email: CSIRO <paul.branson@csiro.au>
|
|
6
6
|
Maintainer-email: Paul Branson <paul.branson@csiro.au>, Tom Durrant <t.durrant@oceanum.science>, Rafael Guedes <r.guedes@oceanum.science>
|
|
@@ -26,11 +26,10 @@ warnings.filterwarnings(
|
|
|
26
26
|
)
|
|
27
27
|
|
|
28
28
|
# __version__ = _version.get_versions()["version"]
|
|
29
|
-
__version__ = "0.5.
|
|
29
|
+
__version__ = "0.5.3"
|
|
30
30
|
|
|
31
31
|
# Import logging configuration
|
|
32
32
|
from .core.logging import LoggingConfig
|
|
33
|
-
|
|
34
33
|
# Import and re-export formatting utilities
|
|
35
34
|
from .formatting import get_formatted_box, get_formatted_header_footer
|
|
36
35
|
|
|
@@ -20,7 +20,8 @@ import yaml
|
|
|
20
20
|
import rompy
|
|
21
21
|
from rompy.backends import DockerConfig, LocalConfig
|
|
22
22
|
from rompy.core.logging import LogFormat, LoggingConfig, LogLevel, get_logger
|
|
23
|
-
from rompy.model import PIPELINE_BACKENDS, POSTPROCESSORS, RUN_BACKENDS,
|
|
23
|
+
from rompy.model import (PIPELINE_BACKENDS, POSTPROCESSORS, RUN_BACKENDS,
|
|
24
|
+
ModelRun)
|
|
24
25
|
|
|
25
26
|
# Initialize the logger
|
|
26
27
|
logger = get_logger(__name__)
|
|
@@ -123,7 +124,9 @@ def add_common_options(f):
|
|
|
123
124
|
return f
|
|
124
125
|
|
|
125
126
|
|
|
126
|
-
def load_config(
|
|
127
|
+
def load_config(
|
|
128
|
+
config_path: str, from_env: bool = False, env_var: str = "ROMPY_CONFIG"
|
|
129
|
+
) -> Dict[str, Any]:
|
|
127
130
|
"""Load configuration from file, string, or environment variable.
|
|
128
131
|
|
|
129
132
|
Args:
|
|
@@ -284,6 +287,39 @@ def run(
|
|
|
284
287
|
sys.exit(1)
|
|
285
288
|
|
|
286
289
|
|
|
290
|
+
def _get_backend_config_registry():
|
|
291
|
+
"""
|
|
292
|
+
Build a registry of backend config classes from entry points and built-ins.
|
|
293
|
+
Returns: dict mapping backend type name to config class
|
|
294
|
+
"""
|
|
295
|
+
registry = {
|
|
296
|
+
"local": LocalConfig,
|
|
297
|
+
"docker": DockerConfig,
|
|
298
|
+
}
|
|
299
|
+
# Try to load from entry points (rompy.config and rompy.backend_config)
|
|
300
|
+
try:
|
|
301
|
+
eps = importlib.metadata.entry_points()
|
|
302
|
+
# Support both 'rompy.config' and 'rompy.backend_config' for flexibility
|
|
303
|
+
for group in ["rompy.config", "rompy.backend_config"]:
|
|
304
|
+
if hasattr(eps, "select"): # Python 3.10+
|
|
305
|
+
entries = eps.select(group=group)
|
|
306
|
+
elif hasattr(eps, "get"): # Python 3.8-3.9
|
|
307
|
+
entries = eps.get(group, [])
|
|
308
|
+
else:
|
|
309
|
+
entries = []
|
|
310
|
+
for ep in entries:
|
|
311
|
+
try:
|
|
312
|
+
cls = ep.load()
|
|
313
|
+
registry[ep.name] = cls
|
|
314
|
+
except Exception as e:
|
|
315
|
+
logger.warning(
|
|
316
|
+
f"Failed to load backend config entry point {ep.name}: {e}"
|
|
317
|
+
)
|
|
318
|
+
except Exception as e:
|
|
319
|
+
logger.warning(f"Could not load backend config entry points: {e}")
|
|
320
|
+
return registry
|
|
321
|
+
|
|
322
|
+
|
|
287
323
|
def _load_backend_config(backend_config_file):
|
|
288
324
|
"""Load backend configuration from config file.
|
|
289
325
|
|
|
@@ -301,14 +337,14 @@ def _load_backend_config(backend_config_file):
|
|
|
301
337
|
raise click.UsageError("Backend configuration must include a 'type' field")
|
|
302
338
|
|
|
303
339
|
backend_type = config_data.pop("type")
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
return LocalConfig(**config_data)
|
|
308
|
-
elif backend_type == "docker":
|
|
309
|
-
return DockerConfig(**config_data)
|
|
340
|
+
registry = _get_backend_config_registry()
|
|
341
|
+
if backend_type in registry:
|
|
342
|
+
return registry[backend_type](**config_data)
|
|
310
343
|
else:
|
|
311
|
-
|
|
344
|
+
available = ", ".join(registry.keys())
|
|
345
|
+
raise click.UsageError(
|
|
346
|
+
f"Unknown backend type in config: {backend_type}. Available types: {available}"
|
|
347
|
+
)
|
|
312
348
|
|
|
313
349
|
|
|
314
350
|
@cli.command()
|
|
@@ -395,7 +431,14 @@ def pipeline(
|
|
|
395
431
|
@click.option("--output-dir", help="Override output directory")
|
|
396
432
|
@add_common_options
|
|
397
433
|
def generate(
|
|
398
|
-
config,
|
|
434
|
+
config,
|
|
435
|
+
output_dir,
|
|
436
|
+
verbose,
|
|
437
|
+
log_dir,
|
|
438
|
+
show_warnings,
|
|
439
|
+
ascii_only,
|
|
440
|
+
simple_logs,
|
|
441
|
+
config_from_env,
|
|
399
442
|
):
|
|
400
443
|
"""Generate model input files only."""
|
|
401
444
|
configure_logging(verbose, log_dir, simple_logs, ascii_only, show_warnings)
|
|
@@ -438,8 +481,64 @@ def generate(
|
|
|
438
481
|
|
|
439
482
|
@cli.command()
|
|
440
483
|
@click.argument("config", type=click.Path(exists=True), required=False)
|
|
484
|
+
@click.option("--processor", default="noop", help="Postprocessor to use (default: noop)")
|
|
485
|
+
@click.option("--output-dir", help="Override output directory for postprocessing")
|
|
486
|
+
@click.option("--validate-outputs/--no-validate", default=True, help="Validate outputs exist (default: True)")
|
|
441
487
|
@add_common_options
|
|
442
|
-
def
|
|
488
|
+
def postprocess(
|
|
489
|
+
config,
|
|
490
|
+
processor,
|
|
491
|
+
output_dir,
|
|
492
|
+
validate_outputs,
|
|
493
|
+
verbose,
|
|
494
|
+
log_dir,
|
|
495
|
+
show_warnings,
|
|
496
|
+
ascii_only,
|
|
497
|
+
simple_logs,
|
|
498
|
+
config_from_env,
|
|
499
|
+
):
|
|
500
|
+
"""Run postprocessing on model outputs using the specified postprocessor."""
|
|
501
|
+
configure_logging(verbose, log_dir, simple_logs, ascii_only, show_warnings)
|
|
502
|
+
|
|
503
|
+
# Validate config source
|
|
504
|
+
if config_from_env and config:
|
|
505
|
+
raise click.UsageError("Cannot specify both config file and --config-from-env")
|
|
506
|
+
if not config_from_env and not config:
|
|
507
|
+
raise click.UsageError("Must specify either config file or --config-from-env")
|
|
508
|
+
|
|
509
|
+
try:
|
|
510
|
+
# Load configuration
|
|
511
|
+
config_data = load_config(config, from_env=config_from_env)
|
|
512
|
+
model_run = ModelRun(**config_data)
|
|
513
|
+
|
|
514
|
+
logger.info(f"Running postprocessing for: {model_run.config.model_type}")
|
|
515
|
+
logger.info(f"Run ID: {model_run.run_id}")
|
|
516
|
+
logger.info(f"Postprocessor: {processor}")
|
|
517
|
+
|
|
518
|
+
# Run postprocessing
|
|
519
|
+
start_time = datetime.now()
|
|
520
|
+
results = model_run.postprocess(
|
|
521
|
+
processor=processor,
|
|
522
|
+
output_dir=output_dir,
|
|
523
|
+
validate_outputs=validate_outputs,
|
|
524
|
+
)
|
|
525
|
+
elapsed = datetime.now() - start_time
|
|
526
|
+
|
|
527
|
+
logger.info(f"✅ Postprocessing completed in {elapsed.total_seconds():.2f}s")
|
|
528
|
+
logger.info(f"Results: {results}")
|
|
529
|
+
|
|
530
|
+
except Exception as e:
|
|
531
|
+
logger.error(f"❌ Postprocessing failed: {e}")
|
|
532
|
+
if verbose > 0:
|
|
533
|
+
logger.exception("Full traceback:")
|
|
534
|
+
sys.exit(1)
|
|
535
|
+
|
|
536
|
+
@cli.command()
|
|
537
|
+
@click.argument("config", type=click.Path(exists=True), required=False)
|
|
538
|
+
@add_common_options
|
|
539
|
+
def validate(
|
|
540
|
+
config, verbose, log_dir, show_warnings, ascii_only, simple_logs, config_from_env
|
|
541
|
+
):
|
|
443
542
|
"""Validate model configuration."""
|
|
444
543
|
configure_logging(verbose, log_dir, simple_logs, ascii_only, show_warnings)
|
|
445
544
|
|
|
@@ -475,7 +574,9 @@ def backends():
|
|
|
475
574
|
|
|
476
575
|
@backends.command("list")
|
|
477
576
|
@add_common_options
|
|
478
|
-
def list_backends(
|
|
577
|
+
def list_backends(
|
|
578
|
+
verbose, log_dir, show_warnings, ascii_only, simple_logs, config_from_env
|
|
579
|
+
):
|
|
479
580
|
"""List available backends."""
|
|
480
581
|
configure_logging(verbose, log_dir, simple_logs, ascii_only, show_warnings)
|
|
481
582
|
|
|
@@ -517,7 +618,14 @@ def list_backends(verbose, log_dir, show_warnings, ascii_only, simple_logs, conf
|
|
|
517
618
|
)
|
|
518
619
|
@add_common_options
|
|
519
620
|
def validate_backend_config(
|
|
520
|
-
config_file,
|
|
621
|
+
config_file,
|
|
622
|
+
backend_type,
|
|
623
|
+
verbose,
|
|
624
|
+
log_dir,
|
|
625
|
+
show_warnings,
|
|
626
|
+
ascii_only,
|
|
627
|
+
simple_logs,
|
|
628
|
+
config_from_env,
|
|
521
629
|
):
|
|
522
630
|
"""Validate a backend configuration file."""
|
|
523
631
|
configure_logging(verbose, log_dir, simple_logs, ascii_only, show_warnings)
|
|
@@ -20,6 +20,7 @@ from typing import Any, Dict, Literal, Optional, Union
|
|
|
20
20
|
from pydantic import Field, model_validator
|
|
21
21
|
|
|
22
22
|
from rompy.backends import BackendConfig
|
|
23
|
+
from rompy.backends.config import BaseBackendConfig
|
|
23
24
|
from rompy.core.config import BaseConfig
|
|
24
25
|
from rompy.core.logging import LogFormat, LoggingConfig, LogLevel, get_logger
|
|
25
26
|
from rompy.core.render import render
|
|
@@ -356,9 +357,9 @@ class ModelRun(RompyBaseModel):
|
|
|
356
357
|
# Docker execution
|
|
357
358
|
model.run(DockerConfig(image="swan:latest", cpu=4, memory="2g"))
|
|
358
359
|
"""
|
|
359
|
-
if not isinstance(backend,
|
|
360
|
+
if not isinstance(backend, BaseBackendConfig):
|
|
360
361
|
raise TypeError(
|
|
361
|
-
f"Backend must be a
|
|
362
|
+
f"Backend must be a subclass of BaseBackendConfig, "
|
|
362
363
|
f"got {type(backend).__name__}"
|
|
363
364
|
)
|
|
364
365
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rompy
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
4
4
|
Summary: Relocatable Ocean Modelling in PYthon (rompy)
|
|
5
5
|
Author-email: CSIRO <paul.branson@csiro.au>
|
|
6
6
|
Maintainer-email: Paul Branson <paul.branson@csiro.au>, Tom Durrant <t.durrant@oceanum.science>, Rafael Guedes <r.guedes@oceanum.science>
|
|
@@ -194,6 +194,16 @@ class TestCLIConfigFromEnv:
|
|
|
194
194
|
])
|
|
195
195
|
assert result.exit_code == 0
|
|
196
196
|
|
|
197
|
+
def test_postprocess_with_config_from_env(self):
|
|
198
|
+
"""Test postprocess command with config from environment variable."""
|
|
199
|
+
with patch.dict(os.environ, {'ROMPY_CONFIG': self.config_json}):
|
|
200
|
+
with patch('rompy.cli.ModelRun') as mock_model_run:
|
|
201
|
+
result = self.runner.invoke(cli, [
|
|
202
|
+
'postprocess', '--config-from-env', '--processor', 'noop'
|
|
203
|
+
])
|
|
204
|
+
assert result.exit_code == 0
|
|
205
|
+
assert mock_model_run.called
|
|
206
|
+
|
|
197
207
|
def test_config_from_env_missing_variable(self):
|
|
198
208
|
"""Test error when ROMPY_CONFIG environment variable is missing."""
|
|
199
209
|
with patch.dict(os.environ, {}, clear=True):
|
|
@@ -232,6 +242,24 @@ class TestCLIBackwardCompatibility:
|
|
|
232
242
|
"period": {"start": "2020-01-01", "end": "2020-01-02"}
|
|
233
243
|
}
|
|
234
244
|
|
|
245
|
+
def test_postprocess_error_on_missing_config(self):
|
|
246
|
+
"""Test error when neither config file nor --config-from-env is specified for postprocess."""
|
|
247
|
+
result = self.runner.invoke(cli, ['postprocess'])
|
|
248
|
+
assert result.exit_code != 0
|
|
249
|
+
assert "Must specify either" in result.output
|
|
250
|
+
|
|
251
|
+
def test_postprocess_error_on_both_config_and_env(self):
|
|
252
|
+
"""Test error when both config file and --config-from-env are specified for postprocess."""
|
|
253
|
+
with tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False) as f:
|
|
254
|
+
json.dump(self.config_data, f)
|
|
255
|
+
config_path = f.name
|
|
256
|
+
try:
|
|
257
|
+
result = self.runner.invoke(cli, ['postprocess', config_path, '--config-from-env'])
|
|
258
|
+
assert result.exit_code != 0
|
|
259
|
+
assert "Cannot specify both" in result.output
|
|
260
|
+
finally:
|
|
261
|
+
os.unlink(config_path)
|
|
262
|
+
|
|
235
263
|
def test_validate_with_config_file(self):
|
|
236
264
|
"""Test that validate command still works with config files."""
|
|
237
265
|
with tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False) as f:
|
|
@@ -283,6 +311,21 @@ class TestCLIBackwardCompatibility:
|
|
|
283
311
|
os.unlink(config_path)
|
|
284
312
|
os.unlink(backend_path)
|
|
285
313
|
|
|
314
|
+
def test_postprocess_with_config_file(self):
|
|
315
|
+
"""Test that postprocess command works with config files."""
|
|
316
|
+
with tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False) as f:
|
|
317
|
+
json.dump(self.config_data, f)
|
|
318
|
+
config_path = f.name
|
|
319
|
+
try:
|
|
320
|
+
with patch('rompy.cli.ModelRun') as mock_model_run:
|
|
321
|
+
result = self.runner.invoke(cli, [
|
|
322
|
+
'postprocess', config_path, '--processor', 'noop'
|
|
323
|
+
])
|
|
324
|
+
assert result.exit_code == 0
|
|
325
|
+
assert mock_model_run.called
|
|
326
|
+
finally:
|
|
327
|
+
os.unlink(config_path)
|
|
328
|
+
|
|
286
329
|
|
|
287
330
|
class TestCLIHelpOutput:
|
|
288
331
|
"""Test that help output includes information about environment variable option."""
|
|
@@ -315,3 +358,9 @@ class TestCLIHelpOutput:
|
|
|
315
358
|
result = self.runner.invoke(cli, ['pipeline', '--help'])
|
|
316
359
|
assert result.exit_code == 0
|
|
317
360
|
assert '--config-from-env' in result.output
|
|
361
|
+
|
|
362
|
+
def test_postprocess_help_includes_config_from_env(self):
|
|
363
|
+
"""Test that postprocess command help mentions --config-from-env option."""
|
|
364
|
+
result = self.runner.invoke(cli, ['postprocess', '--help'])
|
|
365
|
+
assert result.exit_code == 0
|
|
366
|
+
assert '--config-from-env' in result.output
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/02_hybrid/full_hybrid.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/03_river/multi_river.yaml
RENAMED
|
File without changes
|
{rompy-0.5.2 → rompy-0.5.3}/notebooks/schism/boundary_conditions_examples/03_river/simple_river.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|