Closed rmacatee closed 4 years ago
Hi Richard,
First off, sorry for the slow response. I must have missed the email from Github letting me know that there was a new issue.
I wasn't able to replicate your problem exactly. But I did find a bug when trying to load a file with numeric variables for group membership. I pushed a commit just now that fixes this problem (6d748a76b117399c2bbeb5c540d88c762ab8d5aa). I don't know if this means it will run for you. If you still get that bug, let me know. I may need you to send me a snippet of data to see if I can replicate it.
When I googled your problem, it looked like it may be an issue with your Matlab version, but I'll download 2015a right now to see if that's the case. I wouldn't think that the Matlab version would be the problem since you are using a version more recent than 2012 when the change was made to the ismember function. I'll let you know what happens when I try using 2015a. I should be able to check it out this afternoon.
Keep me posted if you are able to try the new commit.
Thanks, Peter
Oh, in order download the new code, you'll need to download or clone the master. I haven't pushed a new release with this fix, yet.
I also found that there was the same problem happening for some types of numeric events. I tested the most recent commit in 2015a and 2017a, and I didn't have any problems. Let me know if this fix works for you. Good luck!
Thanks, Peter
Hey Peter,
Thanks! I downloaded the new master and overwrote my old one. Unfortunately, I'm still getting the same error. I thought it would be helpful for you to see the data so I've attached a sample of it to this message to see if you can recreate the error.
Really appreciate the help! DataSample.xlsx
-Ricky
Hi Ricky,
Unfortunately, I was not able to replicate the error. It's a bit perplexing. Based on reading the error you posted above, I tried to make one more change that might help, but I'm not sure. Without being able to replicate the error, it's difficult to troubleshoot.
Try to download the master one more time. If you run into the error, please post it again here, because I've made a few changes to the script.
Could you also try running the datasample you sent to me. Are you able to process those data? It may be a problem in the larger file that is not captured in the sample you sent me. If that's the case, (and you're comfortable with this option) you might try sending me the entire file. You can send that to my personal email address though. My personal email address can be found in the User Manual.
Although it would be a big hassle for you (and I don't know if it will solve your problem), you might try installing a newer version of Matlab. Based on the error you posted, it seems that the ismember function is getting an extra input from the script, and I can't figure out where it's coming from.
Sorry for the headache! We'll figure this out eventually 😄
Thanks, Peter
Hey Ricky,
I was just wondering whether you had any success. Let me know if you need any more help.
Peter
Hey Peter,
Sorry with the delay - been swamped lately. I've tried running it on just the sample I sent you and still get the same error. I'll try re-downloading the master and try again and let you know what happens tomorrow.
-Ricky
Hey Peter,
I re-downloaded and installed the master - unfortunately, the sample still produces the same error (reproduced below):
Error using ismember (line 79) Invalid input. Valid flags are 'rows', 'legacy', 'R2012a'.
Error in era_loadfile (line 348) dataout = dataout(ismember(...
Error in era_startproc>era_exec (line 1180) era_data.proc.data = era_loadfile('era_prefs',era_prefs,...
Error while evaluating DestroyedObject Callback
One thing I noticed during the toolkit's start up is that I get the message "Warning: Installed MatlabProcessManager version is newer than the version tested for the Toolbox. Toolbox may not work properly as a result." Should I try getting an older version of the MatlabProcessManager? I'm reluctant to change my version of Matlab because there are some utilities I rely upon that don't work in versions newer than 2015a, so I'm pretty stuck with this version at the moment.
-Ricky
Hi Ricky,
Could you try one more thing for me while I look at a few other possibilities? Can you convert your .xlsx to a .csv and try to run that?
Also, which operating system are you running?
Thanks, Peter
Hey Peter,
No dice on the converted .csv file - same error. My OS is Windows 7 Enterprise (64-bit).
Thanks for all your help!
-Ricky
Hi Ricky,
Ok, I tried to replicate your issue on a Windows machine, but it uses Windows 10. I wasn't able to replicate the problem. I made one more tweak that might help you (you'll have to redownload the master again).
I'll have access to a Windows 7 machine on Monday, and I'll try to replicate your problem then.
Sorry this is taking so much work... Fingers crossed!
Thanks, Peter
Hey Peter,
I re-downloaded the master and, unfortunately, I got the same error. Just wanted to let you know!
-Ricky
Hi Ricky,
Unfortunately, I no longer have access to a Windows machine that runs Windows 7. And, I'm unable to replicate the error, so I'm a bit stumped as to what to do. If you're familiar with Matlab, I could walk you through some debugging steps, if you're interested. I think that might be our best shot.
Thanks, Peter
Hey Peter,
I'll be moving shortly and will have access to additional Matlab versions in addition to the older version I need now for other utilities. Since it's not super time sensitive, I'll see if it works first on a newer version of Matlab and then circle back to this bug if necessary.
Thanks for the help!
-Ricky
Sounds good. Good luck!
Peter
On Wed, Jun 6, 2018 at 9:47 AM rmacatee notifications@github.com wrote:
Hey Peter,
I'll be moving shortly and will have access to additional Matlab versions in addition to the older version I need now for other utilities. Since it's not super time sensitive, I'll see if it works first on a newer version of Matlab and then circle back to this bug if necessary.
Thanks for the help!
-Ricky
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/peclayson/ERA_Toolbox/issues/17#issuecomment-395117287, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1Kh21RhgaqsRaX9VVJjZpeT_-wDHEMks5t5_mAgaJpZM4TYtwe .
Hello Dr. Clayson,
I am using version 0.4.7 of the ERP Reliability Analysis Toolbox. I am using Matlab 2015a.
I have appropriately long formatted data that I attempt to analyze using the toolbox but almost immediately get an error after pressing 'Analyze' - the error is posted below. My columns are: SubjID for participant ID, caps_ptsd_dx for diagnostic group (0=NoPTSD,1=PTSD), TrialType (1=anger,2=fear,3=happy,4=shapes) for the condition, and LPPAmp for the single-trial mean amplitudes. Before clicking 'Analyze', I made sure that all columns were accurate and the group and trialType codes were selected.
Error using ismember (line 79) Invalid input. Valid flags are 'rows', 'legacy', 'R2012a'.
Error in era_loadfile (line 312) dataout = dataout(ismember(...
Error in era_startproc>era_exec (line 1180) era_data.proc.data = era_loadfile('era_prefs',era_prefs,...
Error while evaluating DestroyedObject Callback
Thank you for your help!
-Richard Macatee