launch.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "Daily routine",
  9. "type": "debugpy",
  10. "request": "launch",
  11. "program": "daily_routine.py",
  12. "console": "integratedTerminal",
  13. "cwd": "${workspaceFolder}/backend",
  14. "justMyCode": true,
  15. "args": ["--side","right",
  16. "--trial-num","15",
  17. "--major-side-num", "10",
  18. "--trigger-port", "COM7",
  19. "--hand-port","COM15"]
  20. },
  21. {
  22. "name": "General training paradigm",
  23. "type": "debugpy",
  24. "request": "launch",
  25. "program": "general_grasp_training.py",
  26. "console": "integratedTerminal",
  27. "cwd": "${workspaceFolder}/backend",
  28. "justMyCode": true,
  29. "args": ["--subj", "XW01",
  30. "--side","left",
  31. "--n-trials", "15",
  32. "--hand-feedback",
  33. "--hand-port", "COM3",
  34. "--trigger-port", "COM6",
  35. "-fm", "flex",
  36. "-vfr", "0",
  37. "--difficulty", "easy",
  38. "--model-filename", "riemann_rest+flex_01-12-2024-21-15-11.pkl"]
  39. },
  40. {
  41. "name": "Free grasping paradigm",
  42. "type": "debugpy",
  43. "request": "launch",
  44. "program": "free_grasp.py",
  45. "console": "integratedTerminal",
  46. "cwd": "${workspaceFolder}/backend",
  47. "justMyCode": true,
  48. "args": ["--subj", "XW01",
  49. "--hand-port", "COM3",
  50. "--trigger-port", "COM6",
  51. "--arduino-port","COM12",
  52. "-scth", "0.8",
  53. "-stp", "0.9",
  54. "--momentum", "0.7",
  55. "--model-filename", "riemann_rest+flex_01-12-2024-21-15-11.pkl"]
  56. },
  57. // {
  58. // "name": "No peneumatic comparison",
  59. // "type": "debugpy",
  60. // "request": "launch",
  61. // "program": "no_pneumatic_hand.py",
  62. // "console": "integratedTerminal",
  63. // "cwd": "${workspaceFolder}/backend",
  64. // "justMyCode": true,
  65. // "args": ["--trigger-port", "COM6",
  66. // "--arduino-port","COM12"]
  67. // },
  68. {
  69. "name": "Band selection",
  70. "type": "debugpy",
  71. "request": "launch",
  72. "program": "band_selection.py",
  73. "console": "integratedTerminal",
  74. "cwd": "${workspaceFolder}/backend",
  75. "justMyCode": true,
  76. "args": ["--subj", "XW01",
  77. "--band-min", "5",
  78. "--band-max", "150"]
  79. },
  80. {
  81. "name": "Train model",
  82. "type": "debugpy",
  83. "request": "launch",
  84. "program": "training.py",
  85. "console": "integratedTerminal",
  86. "cwd": "${workspaceFolder}/backend",
  87. "justMyCode": true,
  88. "args": ["--subj", "XW01",
  89. "--model-type", "riemann"]
  90. },
  91. {
  92. "name": "Validation",
  93. "type": "debugpy",
  94. "request": "launch",
  95. "program": "validation.py",
  96. "console": "integratedTerminal",
  97. "cwd": "${workspaceFolder}/backend",
  98. "justMyCode": true,
  99. "args": ["--subj", "XW01",
  100. "--model-filename",
  101. "riemann_rest+flex_01-02-2024-12-04-19.pkl"
  102. // "baseline_rest+flex_01-05-2024-08-30-42.pkl"
  103. // "csp_rest+flex_03-15-2024-13-48-19.pkl"
  104. ]
  105. },
  106. {
  107. "name": "Online simulation",
  108. "type": "debugpy",
  109. "request": "launch",
  110. "program": "online_sim.py",
  111. "console": "integratedTerminal",
  112. "cwd": "${workspaceFolder}/backend",
  113. "justMyCode": true,
  114. "args": ["--subj", "XW01",
  115. "-scth", "0.5",
  116. "-stp", "0.9",
  117. "--momentum", "0.7",
  118. "--model-filename",
  119. // "riemann_rest+flex_01-02-2024-12-04-19.pkl"
  120. // "csp_rest+flex_03-15-2024-13-48-19.pkl"
  121. "baseline_rest+flex_01-05-2024-08-30-42.pkl"
  122. // "riemann_rest+flex_0.25s.pkl"
  123. // "riemann_rest+flex_1.5s.pkl"
  124. // "riemann_rest+flex_0.1s.pkl"
  125. ]
  126. },
  127. {
  128. "name": "Train hmm",
  129. "type": "debugpy",
  130. "request": "launch",
  131. "program": "train_hmm.py",
  132. "console": "integratedTerminal",
  133. "cwd": "${workspaceFolder}/backend",
  134. "justMyCode": true,
  135. "args": ["--subj", "XW01",
  136. "--model-filename",
  137. "riemann_rest+flex_01-02-2024-12-04-19.pkl"
  138. // "csp_rest+flex_03-15-2024-13-48-19.pkl"
  139. // "baseline_rest+flex_01-05-2024-08-30-42.pkl"
  140. // "riemann_rest+flex_0.25s.pkl"
  141. // "riemann_rest+flex_1.5s.pkl"
  142. // "riemann_rest+flex_0.1s.pkl"
  143. ]
  144. },
  145. {
  146. "name": "Signal visualization",
  147. "type": "debugpy",
  148. "request": "launch",
  149. "program": "signal_visualization.py",
  150. "console": "integratedTerminal",
  151. "cwd": "${workspaceFolder}/backend",
  152. "justMyCode": true,
  153. "args": ["--subj", "XW01"]
  154. },
  155. {
  156. "name": "Python: 当前文件",
  157. "type": "debugpy",
  158. "request": "launch",
  159. "program": "${file}",
  160. "console": "integratedTerminal",
  161. "cwd": "${workspaceFolder}/backend",
  162. "justMyCode": true
  163. },
  164. {
  165. "name": "Python: Debug Tests",
  166. "type": "debugpy",
  167. "request": "launch",
  168. "program": "${file}",
  169. "purpose": [
  170. "debug-test"
  171. ],
  172. "console": "integratedTerminal",
  173. "cwd": "${workspaceFolder}/backend",
  174. "env": {
  175. "PYTHONPATH": "${workspaceFolder}/backend"
  176. },
  177. "justMyCode": false,
  178. }
  179. ]
  180. }