Skip to content

Commit

Permalink
Fix error when no structural data to segment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraig-ibme committed Dec 12, 2018
1 parent c702460 commit 11ce3f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oxasl/struc.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def init(wsp):
# different results compared to using the mask returned by BET
wsp.structural.brain_mask = Image((wsp.structural.brain.data != 0).astype(np.int), header=wsp.structural.struc.header)

segment(wsp)
if wsp.structural.struc is not None:
segment(wsp)

def segment(wsp):
"""
Expand Down

0 comments on commit 11ce3f7

Please sign in to comment.