From 3e5e4df3ec6992d9e8163912bee5c3469c5f8ef0 Mon Sep 17 00:00:00 2001 From: Marco Dal Molin <5373628+dalmo1991@users.noreply.github.com> Date: Sat, 20 Nov 2021 13:00:17 +0100 Subject: [PATCH 1/6] Minor update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a1e490..ef9a9ae 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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. @@ -41,4 +41,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. \ No newline at end of file +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. From 3ff160cda22868e3bb0de45ba09ad17d8f7e0208 Mon Sep 17 00:00:00 2001 From: Marco Dal Molin <5373628+dalmo1991@users.noreply.github.com> Date: Sat, 20 Nov 2021 13:07:38 +0100 Subject: [PATCH 2/6] Added Zenodo DOI --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ef9a9ae..d3a4e70 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![DOI](https://zenodo.org/badge/406317261.svg)](https://zenodo.org/badge/latestdoi/406317261) + # HydroAnalysis [HydroAnalysis](https://pypi.org/project/hydroanalysis/) is a Python package to calculate indices and metrics useful in the everyday job of an hydrologist. From 934ce7e8f85b8d2b5c9f0ecbdbefa765c3ac8036 Mon Sep 17 00:00:00 2001 From: Thiago Nascimento <101864927+thiagovmdon@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:48:44 +0100 Subject: [PATCH 3/6] Update setup.py When installing the package the installation gives an error due to the use of the * instead of the 0. After editing the setup file locally, and installing it using "pip install ." locally the installation works. --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 4109155..cb0c353 100644 --- a/setup.py +++ b/setup.py @@ -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', ], -) \ No newline at end of file +) From c1531e6dde780e47f5bc51b1232efed4f1a542fa Mon Sep 17 00:00:00 2001 From: Thiago Nascimento <101864927+thiagovmdon@users.noreply.github.com> Date: Thu, 17 Oct 2024 16:54:06 +0200 Subject: [PATCH 4/6] Update meteo_indexes.py There was a misplace in the parenthesis during the p_seasonality computation. --- hydroanalysis/meteo_indexes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydroanalysis/meteo_indexes.py b/hydroanalysis/meteo_indexes.py index 2eb3d73..aae03e9 100644 --- a/hydroanalysis/meteo_indexes.py +++ b/hydroanalysis/meteo_indexes.py @@ -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)) From fc0ebcc9a1f8b56c63e3ee9fbfa0e632863b8f38 Mon Sep 17 00:00:00 2001 From: Marco Dal Molin <5373628+dalmo1991@users.noreply.github.com> Date: Tue, 18 Mar 2025 19:42:48 +0100 Subject: [PATCH 5/6] Ready for new release --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cb0c353..aa14721 100644 --- a/setup.py +++ b/setup.py @@ -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', From a4c498cc94d14265ab54ee3ab48835c38d274743 Mon Sep 17 00:00:00 2001 From: Marco Dal Molin <5373628+dalmo1991@users.noreply.github.com> Date: Tue, 18 Mar 2025 19:44:11 +0100 Subject: [PATCH 6/6] Update automatic_test.yml --- .github/workflows/automatic_test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/automatic_test.yml b/.github/workflows/automatic_test.yml index c36c33d..26eb48a 100644 --- a/.github/workflows/automatic_test.yml +++ b/.github/workflows/automatic_test.yml @@ -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 \ No newline at end of file + run: bash test/unittest/test_all.sh