numpy.lib.format.magic

lib.format.magic(major, minor)[source]

Return the magic string for the given file format version.

Parameters:
majorint in [0, 255]
minorint in [0, 255]
Returns:
magicstr
Raises:
ValueError if the version cannot be formatted.

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