numpy / 1.23 / 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
fpfilelike object
Returns
majorint
minorint

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