{ } Raw JSON

bundles / numpy 2.4.4 / numpy / lib / _format_impl / _write_array_header

function

numpy.lib._format_impl:_write_array_header

source: /numpy/lib/_format_impl.py :445

Signature

def   _write_array_header ( fp d version = None )

Summary

Write the header for an array and returns the version used

Parameters

fp : filelike object
d : dict

This has the appropriate entries for writing its string representation to the header of the file.

version : tuple or None

None means use oldest that works. Providing an explicit version will raise a ValueError if the format does not allow saving this data. Default: None

Aliases

  • numpy.lib._format_impl._write_array_header