-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
TypeError on resample: MF4 opened using the channels option #712
Comments
Quick update: I updated to the latest version v7.0.7, and retried but got the same error. |
The Regarding the error I will have a look later |
Merged
It's just trying to resample channels that weren't loaded, see fix in the PR. |
danielhrisca
added a commit
that referenced
this issue
Jun 2, 2022
I've tried the development branch and now it's working flawlessly! 👏 💯 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python version
Please run the following snippet and write the output here
Code
MDF version
4.10
Code snippet
Traceback
File "C:\git\kpitool\Preprocess\Preprocess.py", line 149, in resampleSignalsInMDF
resampled = meas.resample(etalonSignalName)
File "C:\Users\NOA1BP.conda\envs\kpitool\lib\site-packages\asammdf\mdf.py", line 2835, in resample
MDF._transfer_channel_group_data(mdf.groups[dg_cntr].channel_group, cg)
2022-05-31 15:33:20,983 [CRITICAL] TypeError: list indices must be integers or slices, not NoneType
Description
I have to open and work with large measurement files (~10GB, and with over 1,000,000 signals) so I need to filter and resample the measurement files before the actual data processing, and I ran into this issue.
I've tried resampling by removing the
channels
andmemory
options from the opening, and that's working just fine, but it takes way too long obviously because there are over a million signals. So I've applied a filter to it, (see below) so at least it is running without error.meas = mdf.MDF(filepath).filter(["A1","A2", "iconInfo"])
But I think the resampling should be working for the channel filtered MDF object as well.
I cannot send these measurement files due to confidelity aggreements.
Thank you for your time and consideration.
The text was updated successfully, but these errors were encountered: