Skip to content

Commit

Permalink
Merge pull request #231 from knaaptime/testing
Browse files Browse the repository at this point in the history
testing
  • Loading branch information
knaaptime authored Nov 5, 2024
2 parents af53e83 + de57f22 commit 72817fb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions ci/311.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ dependencies:
- pytest
- pytest-mpl
- pytest-cov
- pytest-xdist
- twine

1 change: 1 addition & 0 deletions ci/312.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies:
- pytest
- pytest-mpl
- pytest-cov
- pytest-xdist
- twine

# docs
Expand Down
1 change: 1 addition & 0 deletions ci/313.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ dependencies:
- pytest
- pytest-mpl
- pytest-cov
- pytest-xdist
- twine
13 changes: 9 additions & 4 deletions segregation/tests/test_multiscalar_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 72817fb

Please sign in to comment.