numpy / 1.22.0 / reference / generated / numpy.lib.format.read_magic.html /

numpy.lib.format.read_magic

lib.format. read_magic ( fp ) [source]

Read the magic string to get the version of the file format.

Parameters
fp filelike object
Returns
major int
minor int

© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.lib.format.read_magic.html