Sorry did not attach the file.
ValueError Traceback (most recent call last)
<ipython-input-7-3862af9149b9> in <module>
1 import scipy.io as sio
----> 2 traces = sio.loadmat('TRACES1.mat')
D:\Anaconda\lib\site-packages\scipy\io\matlab\mio.py in loadmat(file_name, mdict, appendmat, **kwargs)
224 with _open_file_context(file_name, appendmat) as f:
225 MR, _ = mat_reader_factory(f, **kwargs)
--> 226 matfile_dict = MR.get_variables(variable_names)
227
228 if mdict is not None:
D:\Anaconda\lib\site-packages\scipy\io\matlab\mio4.py in get_variables(self, variable_names)
389 mdict = {}
390 while not self.end_of_stream():
--> 391 hdr, next_position = self.read_var_header()
392 name = asstr(hdr.name)
393 if variable_names is not None and name not in variable_names:
D:\Anaconda\lib\site-packages\scipy\io\matlab\mio4.py in read_var_header(self)
345 position in stream of next variable
346 '''
--> 347 hdr = self._matrix_reader.read_header()
348 n = reduce(lambda x, y: x*y, hdr.dims, 1) # fast product
349 remaining_bytes = hdr.dtype.itemsize * n
D:\Anaconda\lib\site-packages\scipy\io\matlab\mio4.py in read_header(self)
115 O, rest = divmod(rest, 100) # unused, should be 0
116 if O != 0:
--> 117 raise ValueError('O in MOPT integer should be 0, wrong format?')
118 P, rest = divmod(rest, 10) # data type code e.g miDOUBLE (see above)
119 T = rest # matrix type code e.g., mxFULL_CLASS (see above)
ValueError: O in MOPT integer should be 0, wrong format?
Regards