Workspace#

MemberKindWhat it is
projectspropertyNames of the projects of the workspace, by name.
rootpropertyThe workspace root.
runsmethodReturn the sealed runs of every project, one row each, narrowed by each filter.
scoremethodRun RunSet.score on the runs of every project, with a project column first.
score_networkmethodRun 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.parquet row each sealed run carries (hydromodpy.results.catalog.federation.read_workspace_runs()), so no project index is needed. workspace["<project>"] opens one project as hmp.open does.

Parameters:

root (str | Path) – The workspace root, the folder of workspace.toml or of projects/.

Raises:

FileNotFoundError – If root holds neither workspace.toml nor projects/.

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.parquet plus project_root. The label is computed by a project index, so it is not a column here.

score(*args, **kwargs)[source]#

Run RunSet.score on the runs of every project, with a project column 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_network on every project, with a project column first.

The arguments are those of hydromodpy.results.run.group.RunSet.score_network().

property projects: list[str][source]#

Names of the projects of the workspace, by name.

property root: Path[source]#

The workspace root.