Skip to content

Commit

Permalink
math.log(..., 2) → math.log2(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Sep 30, 2023
1 parent fee3141 commit eab16f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec2nii/GE/ge_read_pfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eab16f4

Please sign in to comment.