From 3d512addb8d0602b36bc3eb1f9d7b577e5b9fb60 Mon Sep 17 00:00:00 2001 From: Skudalen Date: Fri, 16 Jul 2021 21:04:06 +0200 Subject: [PATCH] chore: start work on more general loading --- .DS_Store | Bin 6148 -> 8196 bytes Handle_emg_data.py | 80 +++++++++++++++++---- Present_data.py | 16 +++-- __pycache__/Handle_emg_data.cpython-38.pyc | Bin 27865 -> 28463 bytes __pycache__/Signal_prep.cpython-38.pyc | Bin 1778 -> 1778 bytes 5 files changed, 78 insertions(+), 18 deletions(-) diff --git a/.DS_Store b/.DS_Store index 72bfca9c860faf7292eff945086a1a5775116dbe..72c945af9ad5f4ccd8105b118be89b7cef749865 100644 GIT binary patch delta 137 zcmZoMXmOBWU|?W$DortDU;r^WfEYvza8E20o2aMAD6}zPH}hr%jz7$c**Q2SHn1=X zP3B=SWldx#VMv_(pY@h-3Imv37F?8!@ load and stores data diff --git a/Present_data.py b/Present_data.py index bfca476..85e35f7 100644 --- a/Present_data.py +++ b/Present_data.py @@ -242,11 +242,17 @@ def mfcc_all_emg_plots(csv_handler:CSV_handler): if __name__ == "__main__": - csv_handler = CSV_handler() - csv_handler.load_data('soft') - nn_handler = NN_handler(csv_handler) - nn_handler.store_mfcc_samples() - nn_handler.save_json_mfcc() + NR_SUBJECTS = 5 + NR_SESSIONS = 4 + + soft_dir_name = 'Exp20201205_2myo_softType' + hard_dir_name = 'Exp20201205_2myo_hardType' + + csv_handler = CSV_handler(NR_SUBJECTS, NR_SESSIONS) + dict = csv_handler.load_general('soft', soft_dir_name) + + pretty(dict) + diff --git a/__pycache__/Handle_emg_data.cpython-38.pyc b/__pycache__/Handle_emg_data.cpython-38.pyc index f81fec5edb18e1a0120edf5172c313b2138a3410..5a651cf1bace16813b92642719557bcc2145dd82 100644 GIT binary patch delta 5920 zcmb_gYj9ju9lz)9-Me?6Nz=TWHc3M%OWPDEg}w+yT0sjXw57l$W!dbxyV+zP>A5#; zQg_{fR`7v5JRcmeI*IS<2uMUh9ekpqd~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zgB_c0J-CDw7YqOt6#}`+7_=!pH(OAb?b1?uz%^5Ok##&j?B>R@ z>g*BsgCF%=+KNb_yht7z8!m`Ph%Fukd2t2)2=@ zO5_`d3wc65mK}}PQSSbdAF#2le6xIhJuX+dYdYuoqNd;+b(0v1!ukC4F?Sa;;RbP5 z{wCF4{07K#0LA<v;kJO@x={x+!Z1D*#= z5zNN=2VlIQX*)FWBFG;C&I2w0urBcuU>Y!QP4?WH5aSPYIW@eqs^Vaj{~lgajA3Lu z0r`yHbXEM6!Sp(f{WF)WCL~pLcnFlr(i%D6R-qDX*LZ#$; z^q|CW#_3?iMpg{*8mP1A8sHRu5Y9?Nn=hIu)|BTu+ zIn=8&E*|vRxX+H4jQk1MN?C;p*>$+3uKv<&jIKkvcvJ2?JYIYq@|Oycx{J_haJjX9 zsNm9h#S7vANcRIOW=9jJNE;N`L}+Ael-asPZ=x1ceM8Dg=%WwG&Hn!)w;s8zh}@+W z{hS`+4bXvvk&GyEw0IGz{BlPQtU(k@;K zo3I%)y^%G3VjAKXL=P#af=eG$nwcf_-9(8H0j>UV(EalI%=NL$=U1iR8ceB{6BLig zCo+%HtIe`(*T`m!+5#vYVxYcDK(F*_LTr~r?P$gsaZ|zitK^H>0d}7Z=VDRcP=5?iy(_rFORSbJvu4?sTU=CoS5+%jx8_Qgx?#p> zR<#pKNu*NXP4Ey!<)Bi{gB=wfR=z;$`&Lgj&&M+ERur7Vb^_#QHCbBvZGg!{8s$Hg cbi2VWYWNPSXUH<_kQK74Y)fbA`*FnjFB?C1LjV8( diff --git a/__pycache__/Signal_prep.cpython-38.pyc b/__pycache__/Signal_prep.cpython-38.pyc index 6dc64b5a7084cea6b58dc27248d6d01c2755a028..78962b5915babb4cc1174b29b3c11e91e55a0417 100644 GIT binary patch delta 20 acmeyw`-zu3l$V!_0SIJIz1ztBoDBdxJO%*( delta 20 acmeyw`-zu3l$V!_0SMAh-`mLjoDBdy_y#-x