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.