diff --git a/predict_gbm/evaluation/evaluate.py b/predict_gbm/evaluation/evaluate.py index 65b7121..d4b3505 100755 --- a/predict_gbm/evaluation/evaluate.py +++ b/predict_gbm/evaluation/evaluate.py @@ -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)