bundles / scipy latest / scipy / io / matlab / _miobase / matfile_version
function
scipy.io.matlab._miobase:matfile_version
Signature
def matfile_version ( file_name , * , appendmat = True ) Summary
Return major, minor tuple depending on apparent mat file type
Extended Summary
Where:
0,x -> version 4 format mat files
1,x -> version 5 format mat files
2,x -> version 7.3 format mat files (HDF format)
Parameters
file_name: strName of the mat file (do not need .mat extension if appendmat==True). Can also pass open file-like object.
appendmat: bool, optionalTrue to append the .mat extension to the end of the given filename, if not already present. Default is True.
Returns
major_version: {0, 1, 2}major MATLAB File format version
minor_version: intminor MATLAB file format version
Raises
: MatReadErrorIf the file is empty.
: ValueErrorThe matfile version is unknown.
Notes
Has the side effect of setting the file read pointer to 0
Aliases
-
scipy.io.matlab.matfile_version