Environment variables#
Built from hydromodpy/core/runtime/env.py; the files that read each variable come from a scan of the code each time the site is built. Fix a wrong row there.
47 variables. tests/unit/architecture/test_surfaces.py fails when the code names a HMP_* variable that has no row in the registry, or when a row names a variable nothing reads.
For users#
Variables a person running HydroModPy may set.
Variable |
When unset |
What it does |
Read in |
|---|---|---|---|
HMP_BIN |
|
Folder of the solver binaries, read by every run and never written by one. |
|
HMP_CACHE_HOME |
the user cache folder of the platform |
Root of the machine cache: solver binaries and the downloaded examples. |
|
HMP_EXAMPLES_SOURCE |
the GitHub tag of the installed version |
Replaces the whole prefix the example files are fetched from: a URL, a |
|
HMP_IMAGE_DIGEST |
unset, no digest sealed |
Digest of the container image, as |
|
HMP_IMAGE_TAG |
unset, not in an image |
Tag of the container image. The |
|
HMP_NO_PROGRESS |
unset |
Any non-empty value turns off the live progress display on the console. |
|
HMP_PROGRESS_FILE |
unset, no file |
Path of an NDJSON file. Each progress event is appended to it as one JSON line, for a supervisor that reads the file while the run goes on. |
|
HMP_SCRATCH_ROOT |
runs/<case>/.hmp/scratch/ and <project>/.hmp/scratch/ inside the project |
Machine scratch root that replaces the scratch folders inside the project, for example |
|
HMP_SET_<key> |
unset |
|
|
HMP_SILENCE_MF6_VERSION_MISMATCH |
unset, the warning is shown |
Any value other than empty, |
|
HMP_STATE_HOME |
the user state folder of the platform |
Root of the machine state, the folder of |
|
HMP_USER |
|
Name of the person who acts, written in the audit trail. |
|
HMP_VERBOSITY |
|
Console verbosity: |
|
HMP_WORKSPACE |
the workspace found above the current folder, then |
Workspace root of the catalog, project and run commands when the command line gives none. |
|
For debugging#
Variables that trace or keep intermediate files, or that HydroModPy sets itself.
Variable |
When unset |
What it does |
Read in |
|---|---|---|---|
HMP_ALLOW_LEGACY_NPY_VALIDATION |
unset, refused |
|
|
HMP_DETERMINISTIC_FETCHED_AT |
unset, the fetch time is written |
|
|
HMP_KEEP_TRIAL_SCRATCH |
unset, removed |
Any value other than empty, |
|
HMP_LAUNCHED_CASE |
unset, |
Set by a launcher ( |
|
HMP_OUT_PATH |
|
Output root of the validation cases and of the investigation scripts under |
|
HMP_PANDERA_STRICT |
unset, a warning is logged |
|
|
HMP_THREADS_PER_CASE |
unset, the native libraries choose their pool size |
Threads one case may use, |
|
HMP_VALIDATION_RESULTS_FILE |
unset, the snapshot committed in docs/source/theory/ |
A results file written by |
|
HMP_WHITEBOX_REDIRECT_NATIVE_STDIO |
redirect outside pytest, not under pytest |
Forces whether the native output of Whitebox is redirected at the file descriptor level. The test suite sets |
|
HMP_WHITEBOX_VERBOSE |
unset, quiet |
A true value ( |
|
For the test suite#
Variables read by the tests and the validation cases.
Variable |
When unset |
What it does |
Read in |
|---|---|---|---|
HMP_COVERAGE |
unset |
Any non-empty value runs the subprocesses of the regression tests and of the validation cases under a coverage wrapper. |
|
HMP_MUTMUT_PYTHON |
unset |
The Python that has mutmut 3.8.0. The two real proofs of |
|
HMP_REPLAY_REPORT |
unset, the frozen replay writes no report |
A file path: the frozen MODFLOW 6 replay test writes there the class and the gaps it measured, before any assertion. |
|
HMP_REQUIRE_BINARIES |
unset, a port test whose solver binary is absent is skipped |
Set in CI or on a machine with the solver binaries: a port test whose solver binary is absent fails instead of skipping (tests/ports/conftest.py). |
|
HMP_REQUIRE_GMSH |
unset, an engine that needs gmsh is skipped without it |
Any non-empty value makes the mesh port tests, and the solver port tests whose mesh engine needs gmsh, fail instead of skipping when gmsh is missing or a built-in engine cannot be loaded. |
|
HMP_REQUIRE_SYBIL |
unset, the page blocks are skipped without sybil |
Any non-empty value makes the test of the Python blocks of Get started fail when sybil is not installed, instead of skipping. |
|
HMP_REQUIRE_WINDOWS |
unset, a Windows test is skipped on another system |
Any non-empty value makes a test marked |
|
HMP_RUN_HUBEAU_NETWORK_TESTS |
unset, skipped |
|
|
HMP_RUN_IGN_ASSEMBLY_TESTS |
unset, skipped |
|
|
HMP_RUN_IGN_DOWNLOAD_TESTS |
unset, skipped |
|
|
HMP_RUN_IGN_NETWORK_TESTS |
unset, skipped |
|
|
HMP_TEST_SCRATCH_OWNER |
set by the first pytest process |
Token of the pytest process that owns the scratch session. The workers and the subprocesses inherit it, so only the owner cleans the session. |
|
HMP_TEST_SCRATCH_ROOT |
|
Scratch root of pytest and of the subprocesses it starts. Point it at a disk folder when the temporary folder is a small RAM disk. |
|
HMP_TEST_SESSION_SCRATCH_ROOT |
a new folder under the scratch root |
Scratch folder of one test session. Set by the test conftest and by |
|
HMP_VALIDATION_RESULTS |
unset, nothing recorded |
Directory where the validation tests write their measured values, thresholds, curves and outcomes, one |
|
For the documentation build#
Variables read by the build of this site.
Variable |
When unset |
What it does |
Read in |
|---|---|---|---|
HMP_CHROMIUM |
unset, |
Chromium executable of the browser probe of the built site ( |
|
HMP_DOCS_COMMIT |
unset, |
Commit the |
|
HMP_DOCS_GOATCOUNTER_URL |
unset, no tracking |
GoatCounter |
|
HMP_DOCS_QUIET |
|
Read by |
|
HMP_DOCS_REPO |
|
Repository the |
|
HMP_DOC_VERSION |
|
Version folder the site is built for: canonical URL and version switcher. The deploy workflow sets it. |
|
HMP_SKIP_CONTRACT_TABLES_GEN |
unset, regenerated |
|
|
HMP_SKIP_DOC_DATA |
unset, regenerated |
|
|