Read an array header from a filelike object using the 1.0 file format version.
This will leave the file object located just after the header.
A file object or something with a read() method like a file.
The shape of the array.
The array data will be written out directly if it is either C-contiguous or Fortran-contiguous. Otherwise, it will be made contiguous before writing it out.
The dtype of the file’s data.
Maximum allowed size of the header. Large headers may not be safe to load securely and thus require explicitly passing a larger value. See ast.literal_eval for details.
If the data is invalid.
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.lib.format.read_array_header_1_0.html