Skip to content

Commit

Permalink
fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Aug 17, 2020
1 parent 6286ba1 commit 96fb5f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions brainreg/backend/niftyreg/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def run_niftyreg(

if additional_images_downsample:
logging.info("Saving additional downsampled images")
for name, image in additional_images_downsample.items():
for name, filename in additional_images_downsample.items():
logging.info(f"Processing: {name}")

downsampled_brain_path = os.path.join(
Expand All @@ -129,17 +129,17 @@ def run_niftyreg(
tmp_downsampled_brain_path = os.path.join(
niftyreg_paths.niftyreg_directory, f"downsampled_{name}.nii",
)
downsampled_brain_standard_path = os.path.join(
registration_output_folder, f"downsampled_standard_{name}.tiff"
)
tmp_downsampled_brain_standard_path = os.path.join(
niftyreg_paths.niftyreg_directory,
f"downsampled_standard_{name}.nii",
)
downsampled_brain_standard_path = os.path.join(
registration_output_folder, f"downsampled_standard_{name}.tiff"
)

# do the tiff part at the beginning
downsampled_brain = imio.load_any(
target_brain_path,
filename,
x_scaling,
y_scaling,
z_scaling,
Expand Down

0 comments on commit 96fb5f4

Please sign in to comment.