hmp.show()#
- Command line
hmp show - Defined in
hydromodpy/project/api.py
-
show(
) xr.DataArray[source]#*,
-
show(
) pd.Series*,
-
show(
) pd.DataFrame*,
-
show(
) Figure | Path*,
-
show(
) Path*,
-
show(
) dict[str, Any] | pd.DataFrame*,
Read one thing of a run, a session, a set of runs or a project.
whatnames a line ofhydromodpy.project.show.SHOWN:summary(run, session, project) a dict of facts;profile(run, session) where the time went;table(run, session, set) the sealed tablename;fieldandseries(run) the variablenameattime,layer,sel,bbox;point(run) the variablesnamein the cellpoint(x,y,cell,depth,label) atlayerand the time steptime;rank(project) thelimitbest runs onmetricatstation, the worst withbest=False;figure(run, session, set) the figurenamewithdpi,timeand the figure’soptions;report(run, session) the report, withpreset,station,strict. The report has one language, solangis refused with the form that replaced it.A bare name that a session and a run both carry is read as the session for
summary, and as the run for the other values ofwhat.runs/<name>names the run forsummary.With
savethe value is written to that file, by its suffix, and its path comes back; a figure is written as PNG, a report where reports go. A server always callsshowwithsave.- Parameters:
ref (str | PathLike[str] | Run | Session | RunSet | Project) – A run, a session, a set of runs or a project: a path, a name in
workspace("."is the project), or the object.what (Literal['summary', 'profile', 'table', 'field', 'series', 'point', 'rank', 'figure', 'report']) – What to read.
workspace (str | PathLike[str] | None) – The project directory, or a folder inside it.
- Returns:
dict or DataFrame or Series or DataArray or Figure or Path – What
whatreads, or the file written withsave.- Raises:
hydromodpy.core.exceptions.CommandUsageError – If
whatis not one the subject has; the message names those it has.- Return type:
Keyword arguments and command-line flags#
The twin command is hmp show.
| Keyword | Default | Command-line flag | Accepted by |
|---|---|---|---|
what | 'summary' | no flag | every form |
workspace | None | -w --workspace | every form |
name | None | no flag | every form |
metric | None | no flag | every form |
limit | None | -n --limit | every form |
best | True | no flag | every form |
time | None | --time | every form |
layer | None | --layer | every form |
point | None | --point | every form |
sel | None | no flag | every form |
bbox | None | no flag | every form |
station | None | --station | every form |
preset | None | --preset | every form |
lang | None | no flag | every form |
strict | False | --strict | every form |
detail | False | --detail | every form |
mixed_windows | False | --mixed-windows | every form |
dpi | None | no flag | every form |
options | None | --opt | every form |
save | None | no flag | every form |
Flags of hmp show with no keyword: --rank, --figure, --report, --table, --to, --var, --xy, --cell, --depth, --label, --timestep, --worst, --engine, --data, --overview, --open. To get their effect from Python, build the configuration object with the values you want, or write them in the TOML file.