@@ -78,7 +78,7 @@ def __init__(self, file_like, spec, mmap=True):
78
78
File-like object or filename. If file-like object, should implement
79
79
at least ``read`` and ``seek``.
80
80
spec : object or tuple
81
- Tuple must have length 2-5, with the following fields:
81
+ Tuple must have length 2-5, with the following values.
82
82
- shape : tuple
83
83
tuple of ints describing shape of data
84
84
- storage_dtype : dtype specifier
@@ -90,7 +90,7 @@ def __init__(self, file_like, spec, mmap=True):
90
90
- slope : float
91
91
Scaling factor for resulting data (default: 1.0)
92
92
- inter : float
93
- Intercept for rescaled dadta (default: 0.0)
93
+ Intercept for rescaled data (default: 0.0)
94
94
OR
95
95
Header object implementing ``get_data_shape``, ``get_data_dtype``,
96
96
``get_data_offset``, ``get_slope_inter``
@@ -188,6 +188,11 @@ def __getitem__(self, slicer):
188
188
return apply_read_scaling (raw_data , self ._slope , self ._inter )
189
189
190
190
def reshape (self , shape ):
191
+ ''' Return an ArrayProxy with a new shape, without modifying data
192
+
193
+ ``array_proxy.reshape(shape)`` is equivalent to
194
+ ``np.reshape(array_proxy, shape)``
195
+ '''
191
196
size = np .prod (self ._shape )
192
197
if np .prod (shape ) != size :
193
198
raise ValueError ("cannot reshape array of size {:d} into shape "
0 commit comments