Skip to content

Commit 772bcdf

Browse files
committed
example in docs is broken
1 parent 03b8c0a commit 772bcdf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ install_requires =
2424
numpy
2525
scipy
2626
fsspec
27+
aiohttp
2728
pillow
2829
xarray
2930
networkx

unmap/unweave.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def construct_graph(imarray, colors=256, normed=True):
6363
Returns:
6464
G (nx.Graph): Value adjacency graph.
6565
"""
66-
glcm = graycomatrix(imarray,
66+
glcm = graycomatrix(np.asarray(imarray),
6767
distances=[1],
6868
angles=[0, np.pi/4, np.pi/2, 3*np.pi/4],
6969
levels=colors,

0 commit comments

Comments
 (0)