{ } Raw JSON

bundles / astropy latest / astropy / utils / shapes / NDArrayShapeMethods / ravel

function

astropy.utils.shapes:NDArrayShapeMethods.ravel

source: /astropy/utils/shapes.py :93

Signature

def   ravel ( self * args ** kwargs )

Summary

Return an instance with the array collapsed into one dimension.

Extended Summary

Parameters are as for ~numpy.ndarray.ravel. Note that it is not always possible to unravel an array without copying the data. If you want an error to be raise if the data is copied, you should should assign shape (-1,) to the shape attribute.

Aliases

  • astropy.utils.NDArrayShapeMethods.ravel