Hi.

Weiß hier jemand mehr? Bin noch bis Sonntag unterwegs und kann aus der Ferne nicht helfen.

Viele Grüße,
Bastian



Von meinem Samsung Galaxy Smartphone gesendet.

-------- Ursprüngliche Nachricht --------
Von: franziska.henrich@gmx.de
Datum: 01.06.18 11:15 (GMT+01:00)
An: 'Bastian Bohn' <bohn@ins.uni-bonn.de>
Betreff: Probleme Einlesen

Hallo Bastian,

 

kann es sein, dass man mit Windows keine Matlab Dateien einlesen kann?

Ich hab die Matlab Datei in den Ordner geschoben, wo auch mein Notebook liegt und folgender Befehl:

                import scipy.io

mat = scipy.io.loadmat('pca_ped_25x50.mat')

 

Gibt folgende Fehlermeldung:

 

        error                                     Traceback (most recent call last)

<ipython-input-30-5f29f3be53bc> in <module>()

      3 import scipy.io

      4

----> 5 mat = scipy.io.loadmat('pca_ped_25x50.mat')

 

~\Anaconda3\lib\site-packages\scipy\io\matlab\mio.py in loadmat(file_name, mdict, appendmat, **kwargs)

    140     variable_names = kwargs.pop('variable_names', None)

    141     MR, file_opened = mat_reader_factory(file_name, appendmat, **kwargs)

--> 142     matfile_dict = MR.get_variables(variable_names)

    143     if mdict is not None:

    144         mdict.update(matfile_dict)

 

~\Anaconda3\lib\site-packages\scipy\io\matlab\mio5.py in get_variables(self, variable_names)

    270         mdict['__globals__'] = []

    271         while not self.end_of_stream():

--> 272             hdr, next_position = self.read_var_header()

    273             name = asstr(hdr.name)

    274             if name in mdict:

 

~\Anaconda3\lib\site-packages\scipy\io\matlab\mio5.py in read_var_header(self)

    224             self._matrix_reader.set_stream(stream)

    225             check_stream_limit = self.verify_compressed_data_integrity

--> 226             mdtype, byte_count = self._matrix_reader.read_full_tag()

    227         else:

    228             check_stream_limit = False

 

mio5_utils.pyx in scipy.io.matlab.mio5_utils.VarReader5.read_full_tag()

 

mio5_utils.pyx in scipy.io.matlab.mio5_utils.VarReader5.cread_full_tag()

 

streams.pyx in scipy.io.matlab.streams.ZlibInputStream.read_into()

 

streams.pyx in scipy.io.matlab.streams.ZlibInputStream._fill_buffer()

 

error: Error -3 while decompressing data: invalid literal/lengths set

 

 

LG Franziska