From 78becc09554f6062656a5cbb4dc654702d58d3b3 Mon Sep 17 00:00:00 2001 From: neuronflow Date: Wed, 14 Feb 2024 17:03:17 +0100 Subject: [PATCH] save current images Signed-off-by: neuronflow --- brainles_preprocessing/modality.py | 2 +- brainles_preprocessing/preprocessor.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/brainles_preprocessing/modality.py b/brainles_preprocessing/modality.py index 09b840a..7daa4bc 100644 --- a/brainles_preprocessing/modality.py +++ b/brainles_preprocessing/modality.py @@ -252,7 +252,7 @@ def extract_brain_region( self.current = atlas_bet_cm return atlas_mask_path - def save_image( + def save_current_image( self, output_path: str, normalization=False, diff --git a/brainles_preprocessing/preprocessor.py b/brainles_preprocessing/preprocessor.py index a877651..9301eed 100644 --- a/brainles_preprocessing/preprocessor.py +++ b/brainles_preprocessing/preprocessor.py @@ -194,12 +194,12 @@ def run( # now we save images that are not skullstripped for modality in self.all_modalities: if modality.raw_skull_output_path: - modality.save_image( + modality.save_current_image( modality.raw_skull_output_path, normalization=False, ) if modality.normalized_skull_output_path: - modality.save_image( + modality.save_current_image( modality.normalized_skull_output_path, normalization=True, )