Skip to content

Commit 143ab5d

Browse files
committed
TEST: Clarify comments
1 parent 3d3381e commit 143ab5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/tests/test_volumeutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ def test__ftype4scaled_finite_warningfilters():
12561256
# 32MiB reliably produces the error on my machine; use 128 for safety
12571257
shape = (1024, 1024, 32)
12581258
tst_arr = np.zeros(shape, dtype=np.float32)
1259-
# Ensure that an overflow will happen
1259+
# Ensure that an overflow will happen for < float64
12601260
tst_arr[0, 0, 0] = np.finfo(np.float32).max
12611261
tst_arr[-1, -1, -1] = np.finfo(np.float32).min
12621262
go = threading.Event()
@@ -1274,7 +1274,7 @@ class CheckScaling(threading.Thread):
12741274
def run(self):
12751275
go.wait()
12761276
try:
1277-
# Use float16 to buy us two failures
1277+
# Use float16 to ensure two failures and increase time in function
12781278
_ftype4scaled_finite(tst_arr, 2.0, 1.0, default=np.float16)
12791279
except Exception as e:
12801280
err.append(e)

0 commit comments

Comments
 (0)