lciti / cvxEDA

Algorithm for the analysis of electrodermal activity (EDA) using convex optimization
GNU General Public License v3.0
62 stars 28 forks source link

Module 'cvxEDA' has no attribute 'cvxEDA' #5

Closed frank984 closed 1 year ago

frank984 commented 4 years ago

I tried to use your .py script in jupyter notebook by first importing the .csv of EDA data. This error appears: image

frank984 commented 4 years ago

solved by running the cvxEDA.py

lciti commented 4 years ago

You should be able to import cvxEDA normally and then use it (no need to "run" cvxEDA).

import cvxEDA
import numpy as np
y = np.fromfile('EDA.csv', sep=' ')[3:]
yn = (y - y.mean()) / y.std()
Fs = 25.
[r, p, t, l, d, e, obj] = cvxEDA.cvxEDA(yn, 1./Fs)
...
lciti commented 1 year ago

@Nidhi2215 It should suffice to just have the cvxEDA.py file in the same folder as the script you are running.