ProjectCatalog#

class hydromodpy.project.ProjectCatalog(project)[source]#

Bases: object

Catalog and lifecycle methods bound to a Project instance.

Composed by Project (project._catalog). Reads project state by reference; never owns it.

Parameters:

project (Project)

property store: Catalog | None#

Open Catalog for direct queries across all runs.

property data: ProjectDataAccessor#

Accessor for the input-data cache scoped to this project.

property runs: ProjectRunsAccessor#

Accessor for the simulation catalog scoped to this project.

property data_loaded: set[str]#

Set of data types already loaded for this project.

get(sim_id)[source]#

Return the Run view associated with sim_id.

Parameters:

sim_id (str)

Return type:

Run

close()[source]#

Close the Catalog and clean up preprocessing files.

Reads the geographic object directly from the context (never triggers a lazy build), so closing an unused Project stays cheap. The preprocessing tree survives when [geographic] write_intermediates asked for the rasters on disk: the option would otherwise write them and lose them at the very next close.

Return type:

None