lciti/cvxEDA

Module 'cvxEDA' has no attribute 'cvxEDA'

frank984 opened this issue · 3 comments

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

solved by running the cvxEDA.py

lciti commented

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

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