From e38f7cfc4c02bafe65600cb4c63324c22fd76400 Mon Sep 17 00:00:00 2001 From: neuronflow Date: Wed, 14 Feb 2024 18:56:28 +0100 Subject: [PATCH] simplify bet again Signed-off-by: neuronflow --- brainles_preprocessing/preprocessor.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/brainles_preprocessing/preprocessor.py b/brainles_preprocessing/preprocessor.py index d58dfdd..9c17f54 100644 --- a/brainles_preprocessing/preprocessor.py +++ b/brainles_preprocessing/preprocessor.py @@ -205,10 +205,7 @@ def run( ) # Optional: Brain extraction - brain_extraction = any( - modality.normalized_bet_output_path or modality.raw_bet_output_path - for modality in self.all_modalities - ) + brain_extraction = any(modality.bet for modality in self.all_modalities) if brain_extraction: bet_dir = os.path.join(self.temp_folder, "brain-extraction")