@@ -601,20 +601,20 @@ def array_to_file(data, fileobj, out_dtype=None, offset=0,
601
601
--------
602
602
>>> from io import BytesIO
603
603
>>> sio = BytesIO()
604
- >>> data = np.arange(10, dtype=np.float )
605
- >>> array_to_file(data, sio, np.float )
604
+ >>> data = np.arange(10, dtype=np.float64 )
605
+ >>> array_to_file(data, sio, np.float64 )
606
606
>>> sio.getvalue() == data.tobytes('F')
607
607
True
608
608
>>> _ = sio.truncate(0); _ = sio.seek(0) # outputs 0
609
609
>>> array_to_file(data, sio, np.int16)
610
610
>>> sio.getvalue() == data.astype(np.int16).tobytes()
611
611
True
612
612
>>> _ = sio.truncate(0); _ = sio.seek(0)
613
- >>> array_to_file(data.byteswap(), sio, np.float )
613
+ >>> array_to_file(data.byteswap(), sio, np.float64 )
614
614
>>> sio.getvalue() == data.byteswap().tobytes('F')
615
615
True
616
616
>>> _ = sio.truncate(0); _ = sio.seek(0)
617
- >>> array_to_file(data, sio, np.float , order='C')
617
+ >>> array_to_file(data, sio, np.float64 , order='C')
618
618
>>> sio.getvalue() == data.tobytes('C')
619
619
True
620
620
"""
@@ -1082,9 +1082,9 @@ def scale_min_max(mn, mx, out_type, allow_intercept):
1082
1082
1083
1083
Returns
1084
1084
-------
1085
- scalefactor : numpy scalar, dtype=np.maximum_sctype(np.float )
1085
+ scalefactor : numpy scalar, dtype=np.maximum_sctype(np.float64 )
1086
1086
scalefactor by which to divide data after subtracting intercept
1087
- intercept : numpy scalar, dtype=np.maximum_sctype(np.float )
1087
+ intercept : numpy scalar, dtype=np.maximum_sctype(np.float64 )
1088
1088
value to subtract from data before dividing by scalefactor
1089
1089
1090
1090
Examples
0 commit comments