From 8f8f9abe0f25f7afaa76e5dca839fd263cf7f0a4 Mon Sep 17 00:00:00 2001 From: Dobson Date: Tue, 11 Jun 2024 09:08:34 +0100 Subject: [PATCH] change reqs --- dev-requirements.txt | 2 +- requirements.txt | 2 +- tests/test_geospatial_utilities.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 3d5f6226..2c6ac139 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -236,7 +236,7 @@ pyproject-hooks==1.0.0 # via # build # pip-tools -pysheds==0.3.5 +pysheds==0.4.0 # via swmmanywhere (pyproject.toml) pyswmm==1.5.1 # via swmmanywhere (pyproject.toml) diff --git a/requirements.txt b/requirements.txt index f0ebb333..a4bfd614 100644 --- a/requirements.txt +++ b/requirements.txt @@ -194,7 +194,7 @@ pyproj==3.6.1 # geopandas # pysheds # rioxarray -pysheds==0.3.5 +pysheds==0.4.0 # via swmmanywhere (pyproject.toml) pyswmm==1.5.1 # via swmmanywhere (pyproject.toml) diff --git a/tests/test_geospatial_utilities.py b/tests/test_geospatial_utilities.py index 94830fe7..37252991 100644 --- a/tests/test_geospatial_utilities.py +++ b/tests/test_geospatial_utilities.py @@ -233,11 +233,11 @@ def test_derive_subcatchments(): # Pyflwdir and pysheds catchment derivation aren't absolutely identical assert almost_equal(polys.set_index('id').loc[2623975694, 'area'], - 1499, tol = 1) + 1998, tol = 1) assert almost_equal(polys.set_index('id').loc[2623975694, 'slope'], - 0.06145, tol = 0.001) + 0.1132, tol = 0.001) assert almost_equal(polys.set_index('id').loc[2623975694, 'width'], - 21.845, tol = 0.001) + 25.225, tol = 0.001) def test_derive_rc(): """Test the derive_rc function."""