Visualization module for Daisy log files (dlf)
Project description
daisypy-vis
Visualisation library and tools for Daisy model output
See doc for examples.
Installation
The visualization tools are available from pypi
pip install daisypy-vis
Development
Checkout repository
git clone git@github.com:daisy-model/daisypy-vis.git
cd daisypy-vis
Install package as editable
pip install -e ".[all]"
pylint
Use pyproject.toml for package-wide settings, e.g. ignore-trailing-whitespace.
pylint daisypy.vis doc
Tests
See pyproject.tomlfor configuration.
To install test dependencies, use either the [all] or the [test] target, e.g.
pip install ".[test]"
To run tests
pytest
Use pytest-mpl to compare images. Generate baselines images by running
pytest --mpl-generate-path=test-data/baseline
and inspect the output...
Note that image comparison tests can fail between different version of matplotlib and freetype. You can force test against images generated with a specific version of matplotlib with
pytest --mpl-baseline-path=test-data/baseline/matplotlib-<matplotlib-version-number>
If no baseline images are available for a specific version, you can generate with
pytest --mpl-generate-path=test-data/baseline/matplotlib-<matplotlib-version-number>
and compare manually.
Baseline for animations are generated by running the tests, this will produce a new set of images in test-data/tmp. Inspect and move to test-data/baseline when happy. In general, text should be removed from to avoid tests failing due to slight variations in font rendering. See for example render_and_compare_animation in daisy_vis/animate/test/test_animate_depth_timeseries.py
Coverage
See pyproject.tomlfor configuration. To generate coverage report
coverage run
To inspect coverage report
coverage report
Tests should as a minimum have 100% code coverage. When applicable, fixed tests should cover boundary conditions and randomized tests should sample the full parameter space.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file daisypy_vis-0.3.1.tar.gz.
File metadata
- Download URL: daisypy_vis-0.3.1.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ddbb631b052068bbe51331f03df4cad407d898dd1e9832c24985148e1b92b70
|
|
| MD5 |
65c668295487f1308b49bbc805c76c0b
|
|
| BLAKE2b-256 |
d488084006f30b0950cec79a84c209bcf7113e716d9ef0aabede3d5c6be94614
|
File details
Details for the file daisypy_vis-0.3.1-py3-none-any.whl.
File metadata
- Download URL: daisypy_vis-0.3.1-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f14b5342b4fb3358588d245918f358a36e6a2a3f71801c89ec570e765a8203c1
|
|
| MD5 |
1579f52d08eec9a2096baef1660395fa
|
|
| BLAKE2b-256 |
99b37bad7e35d2bb530e03cfd1ee9a382304ae90e8f8dacdd2f12e30f1f22083
|