Skip to content

Conversation

MarcelRosier
Copy link
Collaborator

No description provided.

@MarcelRosier MarcelRosier self-assigned this Sep 4, 2025
@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 11:33
@MarcelRosier MarcelRosier linked an issue Sep 4, 2025 that may be closed by this pull request
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to save bet (brain extraction) and defacing masks to specified output paths, addressing the issue where these masks were not being persisted. The changes enable users to specify output paths for both bet and defacing masks in preprocessing workflows.

Key changes:

  • Added bet_mask_output_path and defacing_mask_output_path parameters to CenterModality initialization
  • Implemented mask saving functionality in extract_brain_region and deface methods
  • Added proper type hints and default parameters for better code maintainability

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
example/example_native_space_preprocessor.py Added bet_mask_output_path and defacing_mask_output_path parameters to CenterModality initialization
example/example_atlas_centric_preprocessor.py Added mask output paths and save_dir_transformations parameter
brainles_preprocessing/registration/registrator.py Added default value for interpolator parameter
brainles_preprocessing/preprocessor/atlas_centric_preprocessor.py Added null check for atlas_mask and improved logging
brainles_preprocessing/normalization/*.py Added proper return type hints using NDArray
brainles_preprocessing/modality.py Implemented mask saving functionality and improved type annotations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@neuronflow neuronflow merged commit 5f2fa28 into main Sep 4, 2025
5 checks passed
@neuronflow neuronflow deleted the 157-bug-bet-deface-masks-are-not-saved branch September 4, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] BET/ Deface masks are not saved
2 participants