From eab16f4ef4fb8ebc8d663a721847c67c973f504d Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 30 Sep 2023 12:48:20 +0200 Subject: [PATCH] =?UTF-8?q?math.log(...,=202)=20=E2=86=92=20math.log2(...)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec2nii/GE/ge_read_pfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec2nii/GE/ge_read_pfile.py b/spec2nii/GE/ge_read_pfile.py index 9223c3f..71e150e 100644 --- a/spec2nii/GE/ge_read_pfile.py +++ b/spec2nii/GE/ge_read_pfile.py @@ -584,8 +584,8 @@ def get_fov(self): # CSI has already been reordered if needed - so fov calculated # with this CSI will not need reordering, need next power of 2: - xdim = int(pow(2, math.ceil(math.log(nvox[0], 2)))) - ydim = int(pow(2, math.ceil(math.log(nvox[1], 2)))) + xdim = int(pow(2, math.ceil(math.log2(nvox[0])))) + ydim = int(pow(2, math.ceil(math.log2(nvox[1])))) if (ydim > xdim): fov_spatial_resolution = dfov / ydim