Skip to content

Commit

Permalink
file names
Browse files Browse the repository at this point in the history
Signed-off-by: neuronflow <[email protected]>
  • Loading branch information
neuronflow committed Feb 14, 2024
1 parent b1150e2 commit 94ac819
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions brainles_preprocessing/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 94ac819

Please sign in to comment.