Skip to content

Commit 95a65d0

Browse files
committed
Merge branch 'master' of github.com:csiro-hydroinformatics/hydrodiy
2 parents ab84fae + f9fdad6 commit 95a65d0

File tree

3 files changed

+37
-48
lines changed

3 files changed

+37
-48
lines changed

.github/workflows/python-package-conda.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
pip install -e .
3939
4040
# Run test
41-
pytest --cov=hydrodiy --cov-config=.coveragerc hydrodiy
41+
pytest --cov=hydrodiy --cov-config=.coveragerc --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html hydrodiy
4242
4343
# Run examples
4444
python examples/run_all_examples.py

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# hydrodiy
2+
[![CI](https://github.com/csiro-hydroinformatics/hydrodiy/actions/workflows/python-package-conda.yml/badge.svg)](https://github.com/csiro-hydroinformatics/hydrodiy/actions/workflows/python-package-conda.yml)
3+
4+
Python toolbox for hydrological data processing.
5+
6+
# What is hydrodiy?
7+
- hydrodiy is a set of tools to perform standard data analysis
8+
- the package is structured around typical tasks: io, data checking,
9+
statistical analysis, gis processing and plotting
10+
11+
# Installation
12+
- Create a suitable python environment. We recommend using [miniconda](https://docs.conda.io/projects/miniconda/en/latest/) combined with the environment specification provided in the [env_mini.yml] (env_mini.yml) file in this repository.
13+
- Git clone this repository and run `pip install .`
14+
15+
# Basic use
16+
```python
17+
import numpy as np
18+
import matplotlib.pyplot as plt
19+
from hydrodiy.plot import violinplot
20+
21+
data = np.random.normal(size=(200, 5))
22+
plt.close('all')
23+
fig, ax = plt.subplots(layout='tight')
24+
25+
# Draw a nice violin plot
26+
vl = violinplot.Violin(data)
27+
vl.draw(ax=ax)
28+
29+
plt.show()
30+
```
31+
A set of examples is provided in the folder [examples](examples).
32+
33+
# License
34+
The source code and documentation of the hydrodiy package is licensed under the
35+
[BSD license](LICENSE.txt).
36+

README.rst

-47
This file was deleted.

0 commit comments

Comments
 (0)