-
Notifications
You must be signed in to change notification settings - Fork 38
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
What if my spiketrain or timing variables are empty for some trials. #10
Comments
I had forgotten to remove some nans from one of my variables, so that was the reason for the warning I received. |
Thanks for the report. Can you provide minimal reproducible code so I can quickly fix it? |
|
The code is from line 17 and onwards in addTrial.m |
Awesome. If you want to submit this fix yourself, feel free to send a pull request. I'll merge it so that you can get proper credit. (I was asking you how to replicate the problem.) |
Hey, just as a heads up, this line appears to still need to be added to the base code. I just ran into the same issue and added these lines. |
Whats the advice if my spike train or timing variables are empty during some of the trials?
Sidenote:
To get my data accepted by the addTrial, function I added a condition to only test that the timing of events happen within the duration of the trial if the data input is nonempty. (The tests in line 18 and 28 does not work on empty vectors)
Then, when I compiled the SparseDesignMatrix it gave me a warning that the design matrix contains infs and nans. Could that be due to empty timing vectors?
The text was updated successfully, but these errors were encountered: