ProjectCatalog#
- class hydromodpy.project.ProjectCatalog(project)[source]#
Bases:
objectCatalog and lifecycle methods bound to a
Projectinstance.Composed by
Project(project._catalog). Reads project state by reference; never owns it.- Parameters:
project (
Project)
- 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.
- 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_intermediatesasked for the rasters on disk: the option would otherwise write them and lose them at the very next close.- Return type: