launch.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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", "XW01",
  16. "--n-trials", "15",
  17. "--com", "COM3",
  18. "-fm", "flex",
  19. "-vfr", "0.5",
  20. "-scth", "0.75",
  21. "--model-path", "./static/models/XW01/baseline_rest+flex_11-21-2023-09-59-49.pkl"]
  22. },
  23. {
  24. "name": "Free grasping paradigm",
  25. "type": "python",
  26. "request": "launch",
  27. "program": "free_grasp.py",
  28. "console": "integratedTerminal",
  29. "cwd": "${workspaceFolder}/backend",
  30. "justMyCode": true,
  31. "args": ["--subj", "XW01",
  32. "--com", "COM3",
  33. "-scth", "0.75",
  34. "--model-path", "./static/models/XW01/baseline_rest+flex_11-21-2023-09-59-49.pkl"]
  35. },
  36. {
  37. "name": "Band selection",
  38. "type": "python",
  39. "request": "launch",
  40. "program": "band_selection.py",
  41. "console": "integratedTerminal",
  42. "cwd": "${workspaceFolder}/backend",
  43. "justMyCode": true,
  44. "args": ["--subj", "XW01",
  45. "--band-min", "5",
  46. "--band-max", "55"]
  47. },
  48. {
  49. "name": "Train model",
  50. "type": "python",
  51. "request": "launch",
  52. "program": "training.py",
  53. "console": "integratedTerminal",
  54. "cwd": "${workspaceFolder}/backend",
  55. "justMyCode": true,
  56. "args": ["--subj", "XW01",
  57. "--model-type", "riemann"]
  58. },
  59. {
  60. "name": "Validate model",
  61. "type": "python",
  62. "request": "launch",
  63. "program": "validation.py",
  64. "console": "integratedTerminal",
  65. "cwd": "${workspaceFolder}/backend",
  66. "justMyCode": true,
  67. "args": ["--subj", "XW01",
  68. "-scth", "0.75",
  69. "--model-filename", "riemann_rest+flex_11-23-2023-10-56-58.pkl"]
  70. },
  71. {
  72. "name": "Python: 当前文件",
  73. "type": "python",
  74. "request": "launch",
  75. "program": "${file}",
  76. "console": "integratedTerminal",
  77. "cwd": "${workspaceFolder}/backend",
  78. "justMyCode": true
  79. },
  80. {
  81. "name": "Python: Debug Tests",
  82. "type": "python",
  83. "request": "launch",
  84. "program": "${file}",
  85. "purpose": [
  86. "debug-test"
  87. ],
  88. "console": "integratedTerminal",
  89. "cwd": "${workspaceFolder}/backend",
  90. "env": {
  91. "PYTHONPATH": "${workspaceFolder}/backend"
  92. },
  93. "justMyCode": false,
  94. }
  95. ]
  96. }