2
0

launch.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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": "General training paradigm",
  9. "type": "python",
  10. "request": "launch",
  11. "program": "general_grasp_training.py",
  12. "console": "integratedTerminal",
  13. "cwd": "${workspaceFolder}/backend",
  14. "justMyCode": true,
  15. "args": ["--subj", "TT01",
  16. "--side","left",
  17. "--n-trials", "15",
  18. "--hand-feedback",
  19. "--com", "COM3",
  20. "-fm", "flex",
  21. "-vfr", "1.",
  22. "--difficulty", "mid"]
  23. },
  24. {
  25. "name": "Grasp training",
  26. "type": "python",
  27. "request": "launch",
  28. "program": "grasp_data_collection_no_release.py",
  29. "console": "integratedTerminal",
  30. "cwd": "${workspaceFolder}/backend",
  31. "justMyCode": true,
  32. "args": ["--n-trials", "15",
  33. "--com", "COM3",
  34. "-fm", "flex"]
  35. },
  36. {
  37. "name": "Free grasping paradigm",
  38. "type": "python",
  39. "request": "launch",
  40. "program": "free_grasp.py",
  41. "console": "integratedTerminal",
  42. "cwd": "${workspaceFolder}/backend",
  43. "justMyCode": true,
  44. "args": ["--subj", "XW01",
  45. "--com", "COM3",
  46. "-scth", "0.5",
  47. "-stp", "0.9",
  48. "--momentum", "0.7",
  49. "--model-filename", "riemann_rest+flex_01-02-2024-12-04-19.pkl"]
  50. },
  51. {
  52. "name": "Band selection",
  53. "type": "python",
  54. "request": "launch",
  55. "program": "band_selection.py",
  56. "console": "integratedTerminal",
  57. "cwd": "${workspaceFolder}/backend",
  58. "justMyCode": true,
  59. "args": ["--subj", "XW01",
  60. "--band-min", "5",
  61. "--band-max", "150"]
  62. },
  63. {
  64. "name": "Train model",
  65. "type": "python",
  66. "request": "launch",
  67. "program": "training.py",
  68. "console": "integratedTerminal",
  69. "cwd": "${workspaceFolder}/backend",
  70. "justMyCode": true,
  71. "args": ["--subj", "XW01",
  72. "--model-type", "riemann"]
  73. },
  74. {
  75. "name": "Validation",
  76. "type": "python",
  77. "request": "launch",
  78. "program": "validation.py",
  79. "console": "integratedTerminal",
  80. "cwd": "${workspaceFolder}/backend",
  81. "justMyCode": true,
  82. "args": ["--subj", "XW01",
  83. "--model-filename", "riemann_rest+flex_01-02-2024-12-04-19.pkl"]
  84. },
  85. {
  86. "name": "Online simulation",
  87. "type": "python",
  88. "request": "launch",
  89. "program": "online_sim.py",
  90. "console": "integratedTerminal",
  91. "cwd": "${workspaceFolder}/backend",
  92. "justMyCode": true,
  93. "args": ["--subj", "XW01",
  94. "-scth", "0.5",
  95. "-stp", "0.9",
  96. "--momentum", "0.7",
  97. "--model-filename", "riemann_rest+flex_01-02-2024-12-04-19.pkl"]
  98. },
  99. {
  100. "name": "Train hmm",
  101. "type": "python",
  102. "request": "launch",
  103. "program": "train_hmm.py",
  104. "console": "integratedTerminal",
  105. "cwd": "${workspaceFolder}/backend",
  106. "justMyCode": true,
  107. "args": ["--subj", "XW01",
  108. "--model-filename", "riemann_rest+flex_01-02-2024-12-04-19.pkl"]
  109. },
  110. {
  111. "name": "Python: 当前文件",
  112. "type": "python",
  113. "request": "launch",
  114. "program": "${file}",
  115. "console": "integratedTerminal",
  116. "cwd": "${workspaceFolder}/backend",
  117. "justMyCode": true
  118. },
  119. {
  120. "name": "Python: Debug Tests",
  121. "type": "python",
  122. "request": "launch",
  123. "program": "${file}",
  124. "purpose": [
  125. "debug-test"
  126. ],
  127. "console": "integratedTerminal",
  128. "cwd": "${workspaceFolder}/backend",
  129. "env": {
  130. "PYTHONPATH": "${workspaceFolder}/backend"
  131. },
  132. "justMyCode": false,
  133. }
  134. ]
  135. }