Skip to content

Commit

Permalink
save current images
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 94ac819 commit 78becc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion brainles_preprocessing/modality.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions brainles_preprocessing/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 78becc0

Please sign in to comment.