@@ -468,7 +468,7 @@ def test_io_scaling():
468468
469469def test_input_ranges ():
470470 # Test we get good precision for a range of input data
471- arr = np .arange (- 500 , 501 , 10 , dtype = np .float )
471+ arr = np .arange (- 500 , 501 , 10 , dtype = np .float64 )
472472 bio = BytesIO ()
473473 working_type = np .float32
474474 work_eps = np .finfo (working_type ).eps
@@ -542,7 +542,7 @@ def test_nan2zero():
542542def test_byte_orders ():
543543 arr = np .arange (10 , dtype = np .int32 )
544544 # Test endian read/write of types not requiring scaling
545- for tp in (np .uint64 , np .float , np .complex ):
545+ for tp in (np .uint64 , np .float64 , np .complex128 ):
546546 dt = np .dtype (tp )
547547 for code in '<>' :
548548 ndt = dt .newbyteorder (code )
@@ -554,7 +554,7 @@ def test_byte_orders():
554554
555555
556556def test_writers_roundtrip ():
557- ndt = np .dtype (np .float )
557+ ndt = np .dtype (np .float64 )
558558 arr = np .arange (3 , dtype = ndt )
559559 # intercept
560560 aw = SlopeInterArrayWriter (arr , ndt , calc_scale = False )
@@ -831,7 +831,7 @@ def test_finite_range_nan():
831831 ([np .inf , 1 ], (1 , 1 )), # only look at finite values
832832 ([- np .inf , 1 ], (1 , 1 )),
833833 ([[], []], (np .inf , - np .inf )), # empty array
834- (np .array ([[- 3 , 0 , 1 ], [2 , - 1 , 4 ]], dtype = np . int ), (- 3 , 4 )),
834+ (np .array ([[- 3 , 0 , 1 ], [2 , - 1 , 4 ]], dtype = int ), (- 3 , 4 )),
835835 (np .array ([[1 , 0 , 1 ], [2 , 3 , 4 ]], dtype = np .uint ), (0 , 4 )),
836836 ([0. , 1 , 2 , 3 ], (0 , 3 )),
837837 # Complex comparison works as if they are floats
@@ -859,7 +859,7 @@ def test_finite_range_nan():
859859 # Check float types work as complex
860860 in_arr = np .array (in_arr )
861861 if in_arr .dtype .kind == 'f' :
862- c_arr = in_arr .astype (np .complex )
862+ c_arr = in_arr .astype (np .complex128 )
863863 try :
864864 aw = awt (c_arr , out_type , ** kwargs )
865865 except WriterError :
0 commit comments