From 0e1f510cfca1676fb3d265608d4a34a8977b4a94 Mon Sep 17 00:00:00 2001 From: knaaptime Date: Tue, 5 Nov 2024 11:38:05 -0800 Subject: [PATCH 1/2] xdist --- ci/312.yml | 1 + ci/313.yml | 1 + segregation/tests/test_multiscalar_profile.py | 13 +++++++++---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ci/312.yml b/ci/312.yml index 6f03c286..bcb4f757 100644 --- a/ci/312.yml +++ b/ci/312.yml @@ -27,6 +27,7 @@ dependencies: - pytest - pytest-mpl - pytest-cov + - pytest-xdist - twine # docs diff --git a/ci/313.yml b/ci/313.yml index 2d2d5b36..7f79c184 100644 --- a/ci/313.yml +++ b/ci/313.yml @@ -27,4 +27,5 @@ dependencies: - pytest - pytest-mpl - pytest-cov + - pytest-xdist - twine diff --git a/segregation/tests/test_multiscalar_profile.py b/segregation/tests/test_multiscalar_profile.py index 66581317..f71c9cbb 100644 --- a/segregation/tests/test_multiscalar_profile.py +++ b/segregation/tests/test_multiscalar_profile.py @@ -7,11 +7,11 @@ import pandana as pdna -p = quilt3.Package.browse('osm/metro_networks_8k', "s3://spatial-ucr/") -p['40900.h5'].fetch() -net = pdna.Network.from_hdf5('40900.h5') - def test_multiscalar(): + p = quilt3.Package.browse('osm/metro_networks_8k', "s3://spatial-ucr/") + p['40900.h5'].fetch() + net = pdna.Network.from_hdf5('40900.h5') + s_map = gpd.read_file(load_example("Sacramento1").get_path("sacramentot2.shp")) df = s_map.to_crs(s_map.estimate_utm_crs()) profile = compute_multiscalar_profile( @@ -26,6 +26,11 @@ def test_multiscalar(): def test_multiscalar_network(): + + p = quilt3.Package.browse('osm/metro_networks_8k', "s3://spatial-ucr/") + p['40900.h5'].fetch() + net = pdna.Network.from_hdf5('40900.h5') + s_map = gpd.read_file(load_example("Sacramento1").get_path("sacramentot2.shp")) df = s_map.to_crs(s_map.estimate_utm_crs()) profile = compute_multiscalar_profile( From de57f229f86ca2871da152fb560d9e46005e123a Mon Sep 17 00:00:00 2001 From: knaaptime Date: Tue, 5 Nov 2024 11:42:10 -0800 Subject: [PATCH 2/2] xdist in 311 --- ci/311.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/311.yml b/ci/311.yml index 39c964f8..9580f08e 100644 --- a/ci/311.yml +++ b/ci/311.yml @@ -27,5 +27,6 @@ dependencies: - pytest - pytest-mpl - pytest-cov + - pytest-xdist - twine