launch.json 4.1 KB

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