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

Function _check_version

numpy/lib/format.py:196–199  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

194_MAX_HEADER_SIZE = 10000
195
196def _check_version(version):
197 if version not in [(1, 0), (2, 0), (3, 0), None]:
198 msg = "we only support format version (1,0), (2,0), and (3,0), not %s"
199 raise ValueError(msg % (version,))
200
201def magic(major, minor):
202 """ Return the magic string for the given file format version.

Callers 3

write_arrayFunction · 0.85
read_arrayFunction · 0.85
open_memmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected