Skip to content
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

How to solve this error?? #110

Open
vitarfast opened this issue Oct 7, 2020 · 1 comment
Open

How to solve this error?? #110

vitarfast opened this issue Oct 7, 2020 · 1 comment

Comments

@vitarfast
Copy link

hi, i'm planning to use a neurokit example. But I am not able to follow the example due to an error. How can I fix it?
I changed the scikit-learn version 0.23.2 to 0.20.1 to fix the error, but error was still existed.

Please look at below code and error message.

Import packages

import neurokit as nk
import pandas as pd
import numpy as np
import seaborn as sns

Download data

df = pd.read_csv("https://raw.githubusercontent.com/neuropsychology/NeuroKit.py/master/examples/Bio/bio_100Hz.csv")

Plot it

df.plot()

Process the signals

bio = nk.bio_process(ecg=df['ECG'], rsp=df['RSP'], eda=df['EDA'], add=df['Photosensor'], sampling_rate=100)

bio = nk.bio_process(df["ECG"], df["RSP"], df["EDA"], df["Photosensor"], sampling_rate=100)

Plot the processed dataframe, normalizing all variables for viewing purpose

nk.z_score[bio['df']].plot()

ValueError: Digital filter critical frequencies must be 0 < Wn < 1

image
image

@DominiqueMakowski
Copy link
Member

Hi @vitarfast, I'd suggest using NeuroKit2 as this one is not maintained anymore. Find more info at https://github.com/neuropsychology/NeuroKit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants