Skip to content

Commit

Permalink
make skullstripping check work for none paths
Browse files Browse the repository at this point in the history
Signed-off-by: neuronflow <[email protected]>
  • Loading branch information
neuronflow committed Feb 15, 2024
1 parent 5a4bc89 commit b327ed1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion brainles_preprocessing/modality.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def __init__(

@property
def bet(self) -> bool:
return any([self.raw_bet_output_path, self.normalized_bet_output_path])
return any(
path is not None
for path in [self.raw_bet_output_path, self.normalized_skull_output_path]
)

def normalize(
self,
Expand Down

0 comments on commit b327ed1

Please sign in to comment.