Skip to content

Fix affine source when t1c_file is None#1

Open
Rayzhangzirui wants to merge 1 commit intoBrainLesion:mainfrom
Rayzhangzirui:fix/affine-from-brain-mask
Open

Fix affine source when t1c_file is None#1
Rayzhangzirui wants to merge 1 commit intoBrainLesion:mainfrom
Rayzhangzirui:fix/affine-from-brain-mask

Conversation

@Rayzhangzirui
Copy link
Copy Markdown

What this fixes

Fixes a crash in evaluate_tumor_model when t1c_file=None by selecting the
affine from brain_mask_file when available.

Cause

The function allowed t1c_file to be optional, but the affine was always loaded
from t1c_file, leading to an error

Changes

  • Use t1c_file for affine when provided
  • Fall back to brain_mask_file otherwise

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.

1 participant