WorkspacePathRegistry#

class hydromodpy.core.WorkspacePathRegistry(project_root, root, catalog_path, data_dir, runs_dir, output_root=None)[source]#

Bases: object

Centralize shared data and project-local result paths.

Parameters:
  • project_root (Path)

  • root (Path)

  • catalog_path (Path)

  • data_dir (Path)

  • runs_dir (Path)

  • output_root (Path | None)

classmethod from_config(config)[source]#

Build a registry from a fully resolved workspace config.

Parameters:

config (WorkspaceConfig)

Return type:

WorkspacePathRegistry

solver_scratch_run_folder(sim_id)[source]#

Return the scratch folder for a specific solver run.

Parameters:

sim_id (str)

Return type:

Path

property figures_folder: Path#

Figures that belong to the project, not to one run.

manager_figure_folder(manager_type)[source]#

Return canonical figure folder for one data-manager type.

Parameters:

manager_type (str)

Return type:

Path