Skip to content

Commit

Permalink
fix: anisotropy not working for 2d images
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Dec 19, 2023
1 parent c1a96a1 commit a9712de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dijkstra3d.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ def dijkstra(
voxel_graph
)
else:
anisotropy = list(anisotropy)
while len(anisotropy) < 3:
anisotropy.append(float(1))

if bidirectional:
warnings.warn("bidirectional = True is not currently supported by \
anisotropy dijkstra3d. Fall back to vanilla dijkstra algorithm.")
Expand Down

0 comments on commit a9712de

Please sign in to comment.