io.matlab.mio5_params

Constants and classes for matlab 5 read and write

See also mio5_utils.pyx where these same constants arise as c enums.

If you make changes in this file, don’t forget to change mio5_utils.pyx

Module Contents

Classes

mat_struct() Placeholder for holding read data from structs
MatlabObject() ndarray Subclass to contain matlab object
MatlabFunction() Subclass to signal this is a matlab function
MatlabOpaque() Subclass to signal this is a matlab opaque matrix

Functions

_convert_codecs(template,byte_order) Convert codec template mapping to byte order
_convert_codecs(template, byte_order)

Convert codec template mapping to byte order

Set codecs not on this system to None

template : mapping
key, value are respectively codec name, and root name for codec (without byte order suffix)
byte_order : {‘<’, ‘>’}
code for little or big endian
codecs : dict
key, value are name, codec (as in .encode(codec))
class mat_struct

Placeholder for holding read data from structs

We use instances of this class when the user passes False as a value to the struct_as_record parameter of the scipy.io.matlab.loadmat() function.

class MatlabObject

ndarray Subclass to contain matlab object

__new__(input_array, classname=None)
__array_finalize__(obj)
class MatlabFunction

Subclass to signal this is a matlab function

__new__(input_array)
class MatlabOpaque

Subclass to signal this is a matlab opaque matrix

__new__(input_array)