Workspace#
| Member | Kind | What it is |
|---|---|---|
projects | property | Names of the projects of the workspace, by name. |
root | property | The workspace root. |
runs | method | Return the sealed runs of every project, one row each, narrowed by each filter. |
score | method | Run RunSet.score on the runs of every project, with a project column first. |
score_network | method | Run RunSet.score_network on every project, with a project column first. |
- class Workspace(root)[source]#
Read-only view of a workspace: its projects and the sealed runs they hold.
The runs are read from the
tables.parquet/simulation.parquetrow each sealed run carries (hydromodpy.results.catalog.federation.read_workspace_runs()), so no project index is needed.workspace["<project>"]opens one project ashmp.opendoes.- Parameters:
root (str | Path) – The workspace root, the folder of
workspace.tomlor ofprojects/.- Raises:
FileNotFoundError – If
rootholds neitherworkspace.tomlnorprojects/.
- runs(*, site=None, project=None)[source]#
Return the sealed runs of every project, one row each, narrowed by each filter.
Columns are those of
simulation.parquetplusproject_root. The label is computed by a project index, so it is not a column here.
- score(*args, **kwargs)[source]#
Run
RunSet.scoreon the runs of every project, with aprojectcolumn first.The arguments are those of
hydromodpy.results.run.group.RunSet.score(). A project with nothing to score gives no row, with a warning.
- score_network(*args, **kwargs)[source]#
Run
RunSet.score_networkon every project, with aprojectcolumn first.The arguments are those of
hydromodpy.results.run.group.RunSet.score_network().