Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asammdf reading timestamps incorrect #1110

Open
hanakaizensen opened this issue Dec 5, 2024 · 1 comment
Open

asammdf reading timestamps incorrect #1110

hanakaizensen opened this issue Dec 5, 2024 · 1 comment

Comments

@hanakaizensen
Copy link

Python version

'python=3.11.4 | packaged by Anaconda, Inc. | (main, Jul 5 2023, 13:38:37) '
'[MSC v.1916 64 bit (AMD64)]')
'os=Windows-10-10.0.19045-SP0'
'numpy=1.25.0'
'asammdf=8.0.1'

Code

MDF version

4.10

Code snippet

from asammdf import MDF
import matplotlib.pyplot as plt

mdf = MDF('Data.mf4')
ch1 = mdf.get('S_TRIG_01')

time = ch1.timestamps
plt.plot(time)
plt.xlabel('Points')
plt.ylabel('Time (s)')
plt.show()

Traceback

--

Description

Hi, I found issue with the timestamps in some channel groups of the .mf4 read by asammdf. As an example in the first pictures shown below, the timestamps are not monotonic, which looks correct when reading the file using Matlab codes - see the last picture.
image
image

Guess there was something going wrong when reading the file, but not sure what happened. Most channel groups are normal.

@danielhrisca
Copy link
Owner

Without a file I can't do anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants