Closed colehurwitz closed 1 year ago
Mmm.. not sure! The file should be generated on the fly with the w+
mode. What params are you using?
I am using Samuel's data generation script but I set:
recordings_params["recordings"]['fs'] = 30
@colehurwitz if you installed locally can you print the templates.shape right before the failing line in MEArec.tools? I suspect for some reason the templates are empty to start with
Seems like the templates are fine
Elapsed pad time: 39.38595008850098
Resampling templates at 30.0 Hz
templates_pad = (64, 100, 64, 416)
Oh! Maybe resampling frequency should be in Hz! Not khz!!
Oops! That explains it maybe! Will test
@colehurwitz does it work if you set fs=30000
? If so, can we close it?
Yep, this works. You can close. Thanks!
When I change the sampling frequency in the recording params, I get an error:
I looked into it and it seems like the: 'templates_resample.raw' file never gets generated which is required for changing the sampling frequency.