Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion predict_gbm/evaluation/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ def evaluate_tumor_model(
)

# Brain masking
affine = nib.load(str(t1c_file)).affine
if t1c_file is not None:
affine = nib.load(str(t1c_file)).affine
else:
affine = nib.load(str(brain_mask_file)).affine

if brain_mask_file is None:
t1c = load_mri_data(str(t1c_file))
background = np.min(t1c)
Expand Down