Tools for downloading results for 3Di scenarios
Project description
threedi-scenario-downloader
The threedi-scenario-downloader package includes functions in order to automate most used download actions on the 3Di results. Example methods are:
Download raw results
Download logging
Download maximum waterdepth (non-temporal raster)
Download waterdepth (temporal raster, supply timestamp for snapshot)
Find all scenarios model slug or scenario name
Installation
We can be installed with:
$ pip install threedi-scenario-downloader
(TODO: after the first release has been made)
Development installation of this project itself
We’re installed with pipenv, a handy wrapper around pip and virtualenv. Install that first with pip install pipenv. Then run:
$ PIPENV_VENV_IN_PROJECT=1 pipenv --three $ pipenv install --dev
There will be a script you can run like this:
$ pipenv run run-threedi-scenario-downloader
It runs the main() function in threedi-scenario-downloader/scripts.py, adjust that if necessary. The script is configured in setup.py (see entry_points).
In order to get nicely formatted python files without having to spend manual work on it, run the following command periodically:
$ pipenv run black threedi-scenario-downloader
Run the tests regularly. This also checks with pyflakes, black and it reports coverage. Pure luxury:
$ pipenv run pytest
The tests are also run automatically on “travis”, you’ll see it in the pull requests. There’s also coverage reporting on coveralls.io (once it has been set up).
Changelog of threedi-scenario-downloader
0.1 (2019-01-23)
Initial project structure created with cookiecutter and https://github.com/nens/cookiecutter-python-template
Initial working version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for threedi-scenario-downloader-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 426e34e7ce286f4b3ef5304b4d476455bd0824aef647f76feac1a2cf42d5e1d8 |
|
MD5 | ecdb6eb69dd61500f72d02ce43d9f9cd |
|
BLAKE2b-256 | 50ac5a798482075635d1b1b8ec03ff9dbec11f1a70691e28805006b588504977 |