neuropsychology / NeuroKit.py

A Python Toolbox for Statistics and Neurophysiological Signal Processing (EEG, EDA, ECG, EMG...).
http://neurokit.rtfd.io
MIT License
366 stars 102 forks source link

NeuroKit outdated installation #77

Open SIHHUA opened 6 years ago

SIHHUA commented 6 years ago

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 commented 6 years ago

Related to this issue.

Don't worry, we'll fix this.

First of all, I have some questions:

DominiqueMakowski commented 6 years ago

@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 commented 6 years ago

@DominiqueMakowski

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 commented 6 years ago

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

SIHHUA commented 6 years ago

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

image

But it could install Neuropsydia successfully

DominiqueMakowski commented 6 years ago

@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 commented 6 years ago

@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'