Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/automatic_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
steps:
- name: Prepare the repo
uses: actions/checkout@master
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.7
python-version: 3.9
- name: Install packages
run: pip install -r test/unittest/test_requirements.txt
- name: Test
run: bash test/unittest/test_all.sh
run: bash test/unittest/test_all.sh
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[![DOI](https://zenodo.org/badge/406317261.svg)](https://zenodo.org/badge/latestdoi/406317261)

# HydroAnalysis

HydroAnalysis is a Python package to calculate indices and metrics useful in the everyday job of an hydrologist.
[HydroAnalysis](https://pypi.org/project/hydroanalysis/) is a Python package to calculate indices and metrics useful in the everyday job of an hydrologist.

The package is the result of the re-organization of code that I have used during my research and that I have decided to publish because of its supposed usefulness.

Expand Down Expand Up @@ -41,4 +43,4 @@ There is no systematic testing implemented here. However, the code has been manu

## Your contribution

Please feel free to contribute to the package. If you have any suggestion or you want to contribute to the documentation, please contact the author and have a look at the documentation page explaining how to do it.
Please feel free to contribute to the package. If you have any suggestion or you want to contribute to the documentation, please contact the author and have a look at the documentation page explaining how to do it.
2 changes: 1 addition & 1 deletion hydroanalysis/meteo_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def fit_t(pars, x, y):
delta_t = temp_pars.x[0]
st = temp_pars.x[1]

sig = delta_p * np.sign(delta_t) * np.cos(2 * np.pi * (sp - st / 365.25))
sig = delta_p * np.sign(delta_t) * np.cos(2 * np.pi * (sp - st) / 365.25)

return(float(sig))

Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setuptools.setup(
name='hydroanalysis',
version='1.0.0',
version='1.0.1',
author='Marco Dal Molin',
author_email='marco.dalmolin.1991@gmail.com',
description='Framework for calculating hydrological indices',
Expand All @@ -18,8 +18,8 @@
'Topic :: Scientific/Engineering :: Hydrology',
],
install_requires=[
'numpy>=1.20.*',
'pandas>=1.2.*',
'scipy>=1.6.*',
'numpy>=1.20.0',
'pandas>=1.2.0',
'scipy>=1.6.0',
],
)
)