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

NeuroKit outdated installation #77

Open
SIHHUA opened this issue Sep 19, 2018 · 7 comments
Open

NeuroKit outdated installation #77

SIHHUA opened this issue Sep 19, 2018 · 7 comments

Comments

@SIHHUA
Copy link

SIHHUA commented Sep 19, 2018

Hello,I have some question,and need your help
I wanted to use Neuropython but it's still failed
I ran the code,and it made error

error
module 'biosppy.signals.ecg' has no attribute 'correct_rpeaks'

I checked the file 'biosppy.signals.ecg', there has function'correct_rpeaks',and already has attribute
Is file "bio_ecg_preprocessing" wrong or file "biosppy.signals.ecg"?

code

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

df = pd.read_csv("C:/Users/User/Desktop/CH1.csv")
df.plot()

bio = nk.ecg_process(ecg=df["ECG1"], rsp=None, sampling_rate=250, filter_type='FIR', filter_band='bandpass', filter_frequency=[3, 45], segmenter='hamilton', quality_model='default', hrv_features=['time', 'frequency'], age=None, sex=None, position=None)

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

I tried to unistall neurokit ,and upgrade it
but it still wrong>> C:\Users\User\AppData\Local\Temp\pip-j3oj0gb4-build
What can i do?

@DominiqueMakowski
Copy link
Member

Related to this issue.

Don't worry, we'll fix this.

First of all, I have some questions:

  • Did you already use python for anything else?
  • Does the python you downloaded work, besides neurokit-related stuff (i.e., Can you run import numpy as np and np.mean([1,2,3]) in Spyder?

@DominiqueMakowski
Copy link
Member

@SIHHUA I have updated the neuropython version, could you try downloading it and running to see if it works? Here's the link thanks!

@SIHHUA
Copy link
Author

SIHHUA commented Sep 30, 2018

@DominiqueMakowski

  • Did you already use python for anything else? >> No

  • Does the python you downloaded work, besides neurokit-related stuff (i.e., Can you run import numpy as np and np.mean([1,2,3]) in Spyder? >> Yes,it printed 2.0,and I tested other code which could run.

And I tried downloading the newest neuropython version,but it still got error...
Command "python setup.py egg_info" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-req-build-qc17yb5y\

@DominiqueMakowski
Copy link
Member

At what moment does this error appear? Could you provide some reproducible code / steps required to reproduce this error?

@SIHHUA
Copy link
Author

SIHHUA commented Oct 1, 2018

I opened WinPython Command Prompt.exe to install NeuroKit, as shown below

image

But it could install Neuropsydia successfully

@DominiqueMakowski
Copy link
Member

@SIHHUA That's strange indeed, what is your python version?

Could you try, from here, installing the neuropython distribution (where neurokit is already installed)? Does this work?

@SIHHUA
Copy link
Author

SIHHUA commented Oct 2, 2018

@DominiqueMakowski
Python version is Python 3.6.6
Yes,I downloaded Neuropython.zip
image
And followed hard steps
image
It didn't work,because neurokit can't download successfully >> No module named '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