5.13.2-dev0
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
mhm.download Namespace Reference

Download routines to get test domains for mHM. More...

Functions

 _dl (branch, format, folder, filename)
 
 download_test (branch=None, domain=1, path=None, verbose=False)
 Download a test domain for mHM.
 
 cli (argv=None)
 Command line interface to download test domains for mHM.
 

Variables

str MHM_URL = "https://git.ufz.de/mhm/mhm/-/archive/{branch}/mhm-{branch}.{format}{query}"
 
dict BRANCH_MAP = {"main": "develop", "develop": "main"}
 
list VALID_DOMAINS = [1, 2]
 

Detailed Description

Download routines to get test domains for mHM.

Function Documentation

◆ _dl()

mhm.download._dl (   branch,
  format,
  folder,
  filename 
)
protected

Definition at line 25 of file download.py.

Referenced by mhm.download.download_test().

Here is the caller graph for this function:

◆ cli()

mhm.download.cli (   argv = None)

Command line interface to download test domains for mHM.

Definition at line 76 of file download.py.

◆ download_test()

mhm.download.download_test (   branch = None,
  domain = 1,
  path = None,
  verbose = False 
)

Download a test domain for mHM.

Parameters
branch(str, optional): Branch, tag, or commit of the mHM repository to take the test domain from, by default tag determined from the mHM version
domain(int, optional): Test domain 1 or 2, by default 1
path(pathlike, optional): Destination path for the downloaded folder, by default original name of the test domain folder

Definition at line 30 of file download.py.

References mhm.download._dl().

Here is the call graph for this function:

Variable Documentation

◆ BRANCH_MAP

dict mhm.download.BRANCH_MAP = {"main": "develop", "develop": "main"}

Definition at line 21 of file download.py.

◆ MHM_URL

str mhm.download.MHM_URL = "https://git.ufz.de/mhm/mhm/-/archive/{branch}/mhm-{branch}.{format}{query}"

Definition at line 19 of file download.py.

◆ VALID_DOMAINS

list mhm.download.VALID_DOMAINS = [1, 2]

Definition at line 22 of file download.py.