From b327ed1a93e9191f32e88ff547a2c823b8d08a52 Mon Sep 17 00:00:00 2001 From: neuronflow Date: Thu, 15 Feb 2024 14:28:41 +0100 Subject: [PATCH] make skullstripping check work for none paths Signed-off-by: neuronflow --- brainles_preprocessing/modality.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/brainles_preprocessing/modality.py b/brainles_preprocessing/modality.py index 2e320ef..ff4a94a 100644 --- a/brainles_preprocessing/modality.py +++ b/brainles_preprocessing/modality.py @@ -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,