Brace indexing error in GLM with v4.3.0 #819
-
SummaryTechnical Info
Hello, I'm a first time PSPM user trying to run an existing preprocessing pipeline to model GSR data using GLM for a fear conditioning paradigm. I'm encountering this error when running the script that runs the GLM: Import unsuccesful for file /filepath/Data_export_EH.acq. I'm certain the file it's trying to import exists. Does anyone know how to address this error? This script worked previously for this dataset but not when I rerun it. Thank you very much and please let me know if you need more information. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Thanks for posting this. Which PsPM version are you using, and was it the same when you last ran the script? |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you for your quick response! It's version 4.3.0. This is my first time running this script, but it was used successfully a few years ago. I'm not sure if it's the same version, but I have not updated it while trying to use it. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
The error seems to be related to the import, as can be seen from the warning: "Import unsuccesful for file /filepath/Data_export_EH.acq". The error from Normally, there should be a preceding screen message saying that the import has started ("Importing ...") and subsequently, a warning that tells you why the import did not work. Could you post that too, to help troubleshooting? In any case, it would be helpful if you could upgrade your PsPM version. We are going to release v7.0 within the next few weeks, and the code is much more robust now. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you again for your help! I looked again and resolved the file retrieval issue. Below is the main error I've been getting related to brace indexing. I will ask my team about updating the software version as well. Thank you again for all of your help! Warning: Data not saved.\n
|
Beta Was this translation helpful? Give feedback.
-
Apparently the error is in line 44 of |
Beta Was this translation helpful? Give feedback.
Apparently the error is in line 44 of
pspm_butter
(see https://github.com/bachlab/PsPM/blob/f95d48bdb9354ec98efe362739e0ddfc4d64caad/src/pspm_butter.m). I'm not sure why this happens. In any case, the filter loading inpspm_butter
has changed since. I would suggest:(a) you upgrade to the most recent PsPM version, AND/OR
(b) you install Matlab's signal processing toolbox (in which case, this part of the code won't be used)