From 94ac81935b446cbca7d9d80804ae27e17d1d770a Mon Sep 17 00:00:00 2001 From: neuronflow Date: Wed, 14 Feb 2024 17:03:05 +0100 Subject: [PATCH] file names Signed-off-by: neuronflow --- brainles_preprocessing/preprocessor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/brainles_preprocessing/preprocessor.py b/brainles_preprocessing/preprocessor.py index 381ed86..a877651 100644 --- a/brainles_preprocessing/preprocessor.py +++ b/brainles_preprocessing/preprocessor.py @@ -140,22 +140,22 @@ def run( ) # Register center modality to atlas - file_name = f"atlas__{self.center_modality.modality_name}" + center_file_name = f"atlas__{self.center_modality.modality_name}" transformation_matrix = self.center_modality.register( registrator=self.registrator, fixed_image_path=self.atlas_image_path, registration_dir=self.atlas_dir, - moving_image_name=file_name, + moving_image_name=center_file_name, ) # Transform moving modalities to atlas for moving_modality in self.moving_modalities: - file_name = f"atlas__{moving_modality.modality_name}" + moving_file_name = f"atlas__{moving_modality.modality_name}" moving_modality.transform( registrator=self.registrator, fixed_image_path=self.atlas_image_path, registration_dir_path=self.atlas_dir, - moving_image_name=file_name, + moving_image_name=moving_file_name, transformation_matrix_path=transformation_matrix, ) self._save_output(