@@ -78,7 +78,7 @@ def __init__(self, file_like, spec, mmap=True):
7878 File-like object or filename. If file-like object, should implement
7979 at least ``read`` and ``seek``.
8080 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.
8282 - shape : tuple
8383 tuple of ints describing shape of data
8484 - storage_dtype : dtype specifier
@@ -90,7 +90,7 @@ def __init__(self, file_like, spec, mmap=True):
9090 - slope : float
9191 Scaling factor for resulting data (default: 1.0)
9292 - inter : float
93- Intercept for rescaled dadta (default: 0.0)
93+ Intercept for rescaled data (default: 0.0)
9494 OR
9595 Header object implementing ``get_data_shape``, ``get_data_dtype``,
9696 ``get_data_offset``, ``get_slope_inter``
@@ -188,6 +188,11 @@ def __getitem__(self, slicer):
188188 return apply_read_scaling (raw_data , self ._slope , self ._inter )
189189
190190 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+ '''
191196 size = np .prod (self ._shape )
192197 if np .prod (shape ) != size :
193198 raise ValueError ("cannot reshape array of size {:d} into shape "
0 commit comments