Skip to content

Commit

Permalink
Check user-supplied mask really is in ASL space
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraig-ibme committed Jan 2, 2024
1 parent 3ab1632 commit 5ec4939
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oxasl/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ def run(wsp):
page.heading("Mask generation", level=0)

if wsp.mask is not None:
if reg.get_img_space(wsp, wsp.mask) != "asl":
raise ValueError("Mask supplied is not in ASL space: %s" % wsp.mask.name)
wsp.rois.mask_src = "user"
mask_source = "provided by user (assumed to be ASL space): %s" % wsp.mask.name
mask_source = "ASL space mask provided by user: %s" % wsp.mask.name
wsp.rois.mask = wsp.mask
elif wsp.structural is not None and wsp.structural.struc is not None:
# Preferred option is to use brain extracted structural
Expand Down

0 comments on commit 5ec4939

Please sign in to comment.