This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / io / matlab / _miobase / MatFileReader / __init__

function

scipy.io.matlab._miobase:MatFileReader.__init__

source: build-install/usr/lib/python3.14/site-packages/scipy/io/matlab/_miobase.py:361

Signature

def __init__(self, mat_stream, byte_order = None, mat_dtype = False, squeeze_me = False, chars_as_strings = True, matlab_compatible = False, struct_as_record = True, verify_compressed_data_integrity = True, simplify_cells = False)

Summary

Initializer for mat file reader

Extended Summary

mat_stream

object with file API, open for reading

byte_order

None by default, implying byte order guessed from mat file. Otherwise can be one of ('native', '=', 'little', '<', 'BIG', '>').

mat_dtype

If True, return arrays in same dtype as would be loaded into MATLAB (instead of the dtype with which they are saved).

squeeze_me

Whether to squeeze unit matrix dimensions or not.

chars_as_strings

Whether to convert char arrays to string arrays.

matlab_compatible

Returns matrices as would be loaded by MATLAB (implies squeeze_me=False, chars_as_strings=False, mat_dtype=True, struct_as_record=True).

Aliases

  • scipy.io.matlab._mio4.MatFileReader.__init__