-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Eog features #850
Comments
Would it be possible for you to share some example data? I ran your code with other data and did not get the same error: |
Of course!
sampling_rate=500 |
Thanks @VladimirR46 ! Could you please clarify what you meant by a frequency of 1000 Hz / why you set the sampling_rate to 1000 in your code above if the sampling rate=500? It would also be helpful if you could provide the error message received and the versions of your dependencies. |
Hi. It's just another (new) dataset that has a sampling rate of 500 Hz.
I also need to get the "positive amplitude velocity ratio (pAVR)" characterization as in "Robbins, K. A. (2017). BLINKER: automated extraction of ocular indices from EEG enabling large-scale analysis." But the resulting values are very different, i.e. I mean the value on the X-axis. mean (matlab) == 5.3034 |
Hey, everybody! I think I've solved my problem.
|
Good day! @danibene
Could you explain why the equation doesn't match the original article? |
Hi @VladimirR46 thanks for sharing your solution and error, it's very appreciated! I'm not the person who originally wrote this code and am not familiar with the article so it's hard for me to say off the top of my head (and I don't have time to look into it currently). @DominiqueMakowski are you more familiar with this? In any case I would suggest we keep the issue open so that we eventually either change the code for calculation or give a more informative error message. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Yes, this question is still relevant. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Yes, this question is still relevant. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Good afternoon! When I try to use the eog_features function I get the following error.
TypeError: only size-1 arrays can be converted to Python scalars
But if I change sampling_rate to 100, for example, it works.
info = nk.eog_features(eog_cleaned, peaks,sampling_rate=100)
But I have a frequency of 1000 Hz.
eog_cleaned and peaks have the right data type
The text was updated successfully, but these errors were encountered: