From 399b3e4f353004bb270ea146f21009bc94e05c5f Mon Sep 17 00:00:00 2001 From: Kris Thielemans Date: Mon, 27 Jul 2020 21:32:51 +0100 Subject: [PATCH] fix handling of arguments in get_mmr_fromfile It ignored values for petNoise etc Fixes #3 --- brainweb/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brainweb/utils.py b/brainweb/utils.py index 8033e8e..1911411 100644 --- a/brainweb/utils.py +++ b/brainweb/utils.py @@ -256,8 +256,8 @@ def get_mmr_fromfile(brainweb_file, '.bin.gz', '.npz' if PetClass == FDG else '.{}.npz'.format(PetClass.__name__)), dat, - petNoise=1.0, t1Noise=0.75, t2Noise=0.75, - petSigma=1.0, t1Sigma=1.0, t2Sigma=1.0, + petNoise=petNoise, t1Noise=t1Noise, t2Noise=t2Noise, + petSigma=petSigma, t1Sigma=t1Sigma, t2Sigma=t2Sigma, PetClass=PetClass)