forrestbao / pyeeg

Python + EEG/MEG = PyEEG
GNU General Public License v3.0
241 stars 85 forks source link

Some personal changes to solve the problems I encountered while using "python setup.py test" #38

Open Zq5437 opened 7 months ago

Zq5437 commented 7 months ago

When I was using "python setup.py test" , I encountered somethings like this : (https://github.com/forrestbao/pyeeg/assets/120766295/15b08671-4cc7-4d91-88c8-d26769ed8533)

After I changed something , I also find that there might be something wrong in the process of calculating LLE ,because the output is nans instead of "0.18771136179353307"

so ,I changed the way the 'embedded_sequence' package is called and modified the method of calculating the maximum Lyapunov exponent to avoid nans (https://github.com/forrestbao/pyeeg/assets/120766295/604cfc34-f8f7-4c81-96e9-0aad70adbd22)

(https://github.com/forrestbao/pyeeg/assets/120766295/9859d483-e133-44f9-8d1f-e539dbba3f8c)

I would be honored if this were helpful !And thank you for your patience!