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–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.0/reference/generated/numpy.lib.format.read_magic.html