aremazeilles / beat_routine

Performance Indicators developed by BEAT consortium for the Eurobench project
0 stars 2 forks source link

run_emg #17

Closed aremazeilles closed 4 years ago

aremazeilles commented 4 years ago

So I installed linear-algebra, from here,

And when I launch it:

./run_emg tests/data/input/subject_01_run_01_emg.csv tests/data/input/subject_01_run_01_PlatformData_protocol1.csv out_tests
current directory: /home/anthony/code/eurobench/beat_routine
csv file: tests/data/input/subject_01_run_01_emg.csv
platform data: tests/data/input/subject_01_run_01_PlatformData_protocol1.csv
Same sample frequencyStop: tolerance reached.
warning: the 'corrcoef' function is not yet implemented in Octave

Please read <http://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
warning: called from
    __unimplemented__ at line 524 column 5
    EMG_routine at line 123 column 24
    ./run_emg at line 20 column 5
error: 'corrcoef' undefined near line 123 column 25
error: called from
    EMG_routine at line 123 column 24
    ./run_emg at line 20 column 5

Which version of linear-agebra do you have installed? It seems that function is not yet implemented in octave, but I may be wrong. Can you confirm that it works on your side?

aremazeilles commented 4 years ago

ping @juritaborri

aremazeilles commented 4 years ago

This one seems to be in nan : https://octave.sourceforge.io/nan/function/corrcoef.html I try and tell you

juritaborri commented 4 years ago

In my octave, it work. The version is linear-algebra 2.2.2

aremazeilles commented 4 years ago

Would you have the nan package installed? When I google for octave corrcoef, one of the first link was the one I indicate above

juritaborri commented 4 years ago

To be honest, I neve loaded nan package, I do not know if it is installed by default

Il giorno mar 12 mag 2020 alle ore 17:12 Anthony Remazeilles < notifications@github.com> ha scritto:

Would you have the nan package installed? When I google for octave corrcoef, one of the first link was the one I indicate above

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aremazeilles/beat_routine/issues/17#issuecomment-627407824, or unsubscribe https://github.com/notifications/unsubscribe-auth/APD2ILPAVIKLLO6Z6NX2XS3RRFRPVANCNFSM4M645ECQ .

--

Juri TABORRI, PhD Research Fellow juri.taborri@unitus.it juri.taborri@uniroma1.it ’La Tuscia', University of Viterbo Department of Economics, Engineering. Society and Business Organization (DEIM) Largo dell'Università 01100, Viterbo ITALY +39 0761357049 <+39%200761%20357049>

juritaborri commented 4 years ago

I have installed only these four:

  1. io (2.4.12)
  2. signal (1.4.0)
  3. linear-algebra (2.2.2)
  4. statistics (1.4.0)

Il giorno mar 12 mag 2020 alle ore 17:14 juri taborri < juri.taborri@unitus.it> ha scritto:

To be honest, I neve loaded nan package, I do not know if it is installed by default

Il giorno mar 12 mag 2020 alle ore 17:12 Anthony Remazeilles < notifications@github.com> ha scritto:

Would you have the nan package installed? When I google for octave corrcoef, one of the first link was the one I indicate above

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aremazeilles/beat_routine/issues/17#issuecomment-627407824, or unsubscribe https://github.com/notifications/unsubscribe-auth/APD2ILPAVIKLLO6Z6NX2XS3RRFRPVANCNFSM4M645ECQ .

--

Juri TABORRI, PhD Research Fellow juri.taborri@unitus.it juri.taborri@uniroma1.it ’La Tuscia', University of Viterbo Department of Economics, Engineering. Society and Business Organization (DEIM) Largo dell'Università 01100, Viterbo ITALY +39 0761357049 <+39%200761%20357049>

--

Juri TABORRI, PhD Research Fellow juri.taborri@unitus.it juri.taborri@uniroma1.it ’La Tuscia', University of Viterbo Department of Economics, Engineering. Society and Business Organization (DEIM) Largo dell'Università 01100, Viterbo ITALY +39 0761357049 <+39%200761%20357049>

aremazeilles commented 4 years ago

OK, so, using that nan package, I get to that point:

./run_emg tests/data/input/subject_01_run_01_emg.csv tests/data/input/subject_01_run_01_PlatformData_protocol1.csv out_tests
current directory: /home/anthony/code/eurobench/beat_routine
csv file: tests/data/input/subject_01_run_01_emg.csv
platform data: tests/data/input/subject_01_run_01_PlatformData_protocol1.csv
warning: function /home/anthony/octave/nan-3.4.5/std.m shadows a core library function
warning: called from
    load_packages_and_dependencies at line 47 column 5
    load_packages at line 60 column 3
    pkg at line 422 column 7
    ./run_emg at line 19 column 2
warning: function /home/anthony/octave/nan-3.4.5/norminv.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/cov.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/sumsq.m shadows a built-in function
warning: function /home/anthony/octave/nan-3.4.5/var.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/iqr.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/tpdf.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/spearman.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/zscore.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/kurtosis.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/meansq.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/tinv.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/quantile.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/ranks.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/normpdf.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/moment.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/center.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/median.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/mean.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/normcdf.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/detrend.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/range.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/skewness.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/prctile.m shadows a core library function
warning: function /home/anthony/octave/nan-3.4.5/tcdf.m shadows a core library function
Same sample frequencyStop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
Stop: tolerance reached.
error: 'NoS_r' undefined near line 152 column 33
error: called from
    EMG_routine at line 152 column 8
    ./run_emg at line 21 column 5
error: evaluating argument list element number 3
error: called from
    EMG_routine at line 152 column 8
    ./run_emg at line 21 column 5

Looking at the code, on line 128, NoS_ris only assigned to a value if the previous condition is true. So tis Nan package may not be the appropriate option

aremazeilles commented 4 years ago

I may not have installed the same version of the packages in my machine. I would like to understand from which packages comes that function. Could you check using pkg describe -verbose and add the name of the 4 packages, and see if that function corrcoef appears?

aremazeilles commented 4 years ago

This is an old topic, but might be related: https://savannah.gnu.org/bugs/?33541 It seems in more recent versions, corrcoef has been removed from octave. I tried using then corr instead of corrcoef, but I get the same issue above, i.e. the variable Nos_r does not get created...

juritaborri commented 4 years ago

'corrcoef' is a function from the file C:\Octave\OCTAVE~1.0\mingw64\share\octave\5.1.0\m\statistics\corrcoef.m

Il giorno mar 12 mag 2020 alle ore 17:41 Anthony Remazeilles < notifications@github.com> ha scritto:

This is an old topic, but might be related: https://savannah.gnu.org/bugs/?33541 It seems in more recent versions, corrcoef has been removed from octave. I tried using then corr instead of corrcoef, but I get the same issue above, i.e. the variable Nos_r does not get created...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aremazeilles/beat_routine/issues/17#issuecomment-627425129, or unsubscribe https://github.com/notifications/unsubscribe-auth/APD2ILJOITVJ7W7HMCKH6J3RRFU4DANCNFSM4M645ECQ .

--

Juri TABORRI, PhD Research Fellow juri.taborri@unitus.it juri.taborri@uniroma1.it ’La Tuscia', University of Viterbo Department of Economics, Engineering. Society and Business Organization (DEIM) Largo dell'Università 01100, Viterbo ITALY +39 0761357049 <+39%200761%20357049>

aremazeilles commented 4 years ago

I am using statistics 1.4.1, you have 1.4.0. Also I am using octave 4.0, while you have octave 5.1.0

This is unclear where can be the issue. I may try to advance on the other topic, #14, and then com back to that issue later on.