Index problem
Python version
3.8.3 (default, May 19 2020, 06:50:17) [MSC v.1916 64 bit (AMD64)]
Platform information
Windows-10-10.0.17134-SP0
Numpy version
1.19.0
mdfreader version
4.1
Description
There is an unusual problem happened. I got 2 MDF files which recorded by DataLogger, one of them could be read well but the other one reported a bug
File "D:/program/12222.py", line 20, in
I try to fix it but I got no idea of changing the length of index. Following image is the details of my data. Hope you could help me to fix it. Thanks!

Hi, sorry for the delay, I was in vacation. You are trying to read an unsorted file version 3.x.. I must admit it is not greatly tested. Thanks for sharing the screenshot. However, if I cannot compare with what is expected, like record structure from MDFValidator, it is too complex for me to troubleshoot. Or you can share the file if you can ; if you want to remove confidential info, you can scramble it following the script from Daniel : https://github.com/ratal/mdfreader/issues/189#issuecomment-711626428