diff --git a/apls/apls_utils.py b/apls/apls_utils.py index 5b920e4..f02f151 100644 --- a/apls/apls_utils.py +++ b/apls/apls_utils.py @@ -192,7 +192,7 @@ def G_to_kdtree(G_, x_coord='x', y_coord='y', verbose=False): # populate node array t1 = time.time() for i, n in enumerate(G_.nodes()): - n_props = G_.node[n] + n_props = G_.nodes[n] if x_coord == 'lon': lat, lon = n_props['lat'], n_props['lon'] x, y = lon, lat diff --git a/environment.yml b/environment.yml index 111aaa7..239c040 100644 --- a/environment.yml +++ b/environment.yml @@ -11,11 +11,11 @@ dependencies: - geopandas=0.5.0 - opencv=3.4.4 - numpy=1.16.3 - - gdal=2.4.0 - rtree=0.8.3 - - networkx=2.3 - rasterio=1.0.22 - scipy=1.2.1 - scikit-image=0.15.0 - pip: - - affine==2.2.2 \ No newline at end of file + - affine==2.2.2 + - GDAL>=2.2.0 + - networkx>=2.4