Skip to content

Commit 462ff53

Browse files
committed
[DEBUG] manage mask=None in watershed.py
1 parent 533b276 commit 462ff53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/example_watershed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
###############################################################################
2929
# loading an examplar mesh and corresponding texture
3030
path_to_mesh = "../examples/data/example_mesh.gii"
31-
path_to_mask = ""
31+
path_to_mask = None
3232
path_to_output = ""
3333

3434
mesh = sio.load_mesh(path_to_mesh)
@@ -48,7 +48,7 @@
4848

4949
###############################################################################
5050
# define the exclusion mask (cingular pole)
51-
if path_to_mask:
51+
if path_to_mask is not None:
5252
mask = sio.load_texture(path_to_mask).darray[0]
5353
else:
5454
mask = None

0 commit comments

Comments
 (0)