hydromodpy.core.workspace.resolve#
Best-effort workspace-root lookup for runtime code.
Used by solver-side and analysis helpers that need to re-open a workspace
catalog from a project directory on disk (e.g. MODPATH replaying a
previous solve). This is a read-only lookup - it does not drive the
strict binary resolution of WorkspaceConfig.
Lookup strategy (first match wins):
HMP_WORKSPACEenvironment variable if it points at a directory.<project_root>/../..whenproject_root.parent.name == "projects"and the grand-grand-parent containsdata/.
Returns None when no workspace can be found - callers fall back to
the project_root directly.
Functions
|
Best-effort lookup, returning |