![]() |
mHM
The mesoscale Hydrological Model
|
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] |
Download routines to get test domains for mHM.
COPYING
and COPYING.LESSER
provided with this software. The complete GNU license text can also be found at http://www.gnu.org/licenses/.
|
protected |
Definition at line 24 of file download.py.
Referenced by mhm.download.download_test().
mhm.download.cli | ( | argv = None | ) |
Command line interface to download test domains for mHM.
Definition at line 75 of file download.py.
mhm.download.download_test | ( | branch = None , |
|
domain = 1 , |
|||
path = None , |
|||
verbose = False |
|||
) |
Download a test domain for mHM.
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 29 of file download.py.
References mhm.download._dl().
dict mhm.download.BRANCH_MAP = {"main": "develop", "develop": "main"} |
Definition at line 20 of file download.py.
str mhm.download.MHM_URL = "https://git.ufz.de/mhm/mhm/-/archive/{branch}/mhm-{branch}.{format}{query}" |
Definition at line 18 of file download.py.
list mhm.download.VALID_DOMAINS = [1, 2] |
Definition at line 21 of file download.py.