Closed danielhrisca closed 6 years ago
I shoul dhave this in last commit.
Save file : mdfreader 0.2.7 noDataLoading mdfv3
File "E:\02__PythonWorkspace\asammdf\benchmarks\bench.py", line 408, in save_reader3_nodata
x.write(r'x.mdf')
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdfreader.py", line 431, in write
self.write3(fileName=fileName)
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf3reader.py", line 1409, in write3
fid.write(fromarrays(dataList).tobytes(order='F'))
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\numpy\core\records.py", line 619, in fromarrays
raise ValueError("array-shape mismatch in array %d" % k)
Save file : mdfreader 0.2.7 noDataLoading mdfv4
File "E:\02__PythonWorkspace\asammdf\benchmarks\bench.py", line 448, in save_reader4_nodata
x.write(r'x.mf4')
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdfreader.py", line 429, in write
self.convertAllChannel()
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdfreader.py", line 464, in convertAllChannel
return self._convertAllChannel4()
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 1309, in _convertAllChannel4
self.read4(self.fileName, convertAfterRead=True)
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 1202, in read4
self._convertAllChannel4()
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 1312, in _convertAllChannel4
[self._convertChannel4(channelName) for channelName in self]
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 1312, in <listcomp>
[self._convertChannel4(channelName) for channelName in self]
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 1300, in _convertChannel4
self.setChannelData(channelName, self._getChannelData4(channelName))
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 1227, in _getChannelData4
self.read4(fileName=None, info=self.info, channelList=[channelName], convertAfterRead=False)
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 1107, in read4
buf.read(channelSet, info) # reads raw data from data block with DATA and DATABlock classes
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 371, in read
self[recordID]['data'] = self.load(record, info, zip=None, nameList=channelSet, sortedFlag=True)
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 454, in load
temps['data'] = record.readSortedRecord(self.fid, self.pointerTodata, info, channelSet=nameList)
File "E:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\lib\site-packages\mdfreader\mdf4reader.py", line 805, in readSortedRecord
rec = zeros((self.numberOfRecords, ), dtype=numpyDataRecordFormat)
Hi Daniel, Sorry, I missed your comment that you changed test files and could explain why I could not catch your exceptions. But unfortunately, you had to remove it from you repository. Can you make it available for me again please ? Thanks
Hello Aymeric,
I will attach the new files in the morning.
I've uploaded them to the issue in my repo
It should be fixed with last commit
Environment
Files used
I have changed the test files with the new ones found here:
https://github.com/danielhrisca/asammdf/blob/master/benchmarks/test%20files.7z
MDF version 3 error
MDF version 4 error