Skip to content

Commit fcd8dd0

Browse files
author
Mathieu Scheltienne
committed
rm use of np.maximum_sctype
1 parent 2398cc3 commit fcd8dd0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nibabel/quaternions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929

3030
import numpy as np
3131

32-
MAX_FLOAT = np.maximum_sctype(float)
32+
from .casting import sctypes
33+
34+
MAX_FLOAT = sctypes["float"][-1]
3335
FLOAT_EPS = np.finfo(float).eps
3436

3537

nibabel/tests/test_scaling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_scaling_in_abstract(category0, category1, overflow):
188188

189189
def check_int_a2f(in_type, out_type):
190190
# Check that array to / from file returns roughly the same as input
191-
big_floater = np.maximum_sctype(np.float64)
191+
big_floater = sctypes["float"][-1]
192192
info = type_info(in_type)
193193
this_min, this_max = info['min'], info['max']
194194
if not in_type in sctypes['complex']:

0 commit comments

Comments
 (0)