MCPcopy Create free account
hub / github.com/numpy/numpy / write_array_header_2_0

Function write_array_header_2_0

numpy/lib/format.py:462–475  ·  view source on GitHub ↗

Write the header for an array using the 2.0 format. The 2.0 format allows storing very large structured arrays. .. versionadded:: 1.9.0 Parameters ---------- fp : filelike object d : dict This has the appropriate entries for writing its string represent

(fp, d)

Source from the content-addressed store, hash-verified

460
461
462def write_array_header_2_0(fp, d):
463 """ Write the header for an array using the 2.0 format.
464 The 2.0 format allows storing very large structured arrays.
465
466 .. versionadded:: 1.9.0
467
468 Parameters
469 ----------
470 fp : filelike object
471 d : dict
472 This has the appropriate entries for writing its string
473 representation to the header of the file.
474 """
475 _write_array_header(fp, d, (2, 0))
476
477def read_array_header_1_0(fp, max_header_size=_MAX_HEADER_SIZE):
478 """

Callers

nothing calls this directly

Calls 1

_write_array_headerFunction · 0.85

Tested by

no test coverage detected