hydromodpy.calibration.reporting.network_transient.io#

CSV/JSON/TOML readers, artifact inspection and small parsing helpers.

Functions

as_int_str(value)

Format an integer-like value with thousands separators; '-' when missing.

coerce_float(value[, default])

Coerce a value to float; return default on TypeError/ValueError.

default_path_base(real_root)

Infer the project root from the real_runs directory.

default_score_tables(real_root)

Return the default score-table paths under one real_runs root.

default_truth_packages(real_root)

Return the default truth-package paths under one real_runs root.

first_existing(paths)

Return the first existing path, or None.

first_score_table(paths)

Return the first score table with at least one completed row.

fmt_float(value[, digits])

Format a value as a short fixed-or-scientific string; empty when NaN.

inspect_network_transient_html_artifacts(*, ...)

Inspect whether the standard network/transient HTML artifacts are present.

read_csv(path)

Read a CSV as a list of OrderedDict rows; empty when missing.

read_json(path)

Read a JSON dict; empty when missing.

read_toml(path)

Read a TOML dict; empty when missing.

read_truth_discharge(path)

Read the synthetic truth Q_total_release column from a CSV.

Classes

NetworkTransientHtmlArtifactReport(...[, ...])

Resolved artifact contract for one network/transient HTML report.