numpy.lib.format.magic
- lib.format. magic ( major, minor ) [source]
-
Return the magic string for the given file format version.
- Parameters
-
- major int in [0, 255]
- minor int in [0, 255]
- Returns
-
- magic str
- Raises
-
- ValueError if the version cannot be formatted.
© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.lib.format.magic.html