config.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. """Module core/configs provide project base settings"""
  2. import glob
  3. import json
  4. import os
  5. import os.path
  6. class Settings:
  7. PROJECT_NAME: str = 'Kraken'
  8. DEVICE = 'neo'
  9. CONFIG_INFO = {
  10. 'host': '127.0.0.1',
  11. 'port': 8712,
  12. 'channel_count': 9,
  13. 'sample_rate': 1000,
  14. 'buffer_length': 0.5,
  15. 'channel_labels': [
  16. 'CH001',
  17. 'CH002',
  18. 'CH003',
  19. 'CH004',
  20. 'CH005',
  21. 'CH006',
  22. 'CH007',
  23. 'CH008',
  24. 'STIM'
  25. ],
  26. 'strips': [['CH001', 'CH002', 'CH003', 'CH004'],
  27. ['CH005', 'CH006', 'CH007', 'CH008']],
  28. }
  29. FINGERMODEL_IDS = {
  30. 'rest': 0,
  31. 'cylinder': 1,
  32. 'ball': 2,
  33. 'flex': 3,
  34. 'double': 4,
  35. 'treble': 5,
  36. 'extend': 6
  37. }
  38. FINGERMODEL_IDS_INVERSE = {
  39. 0: 'rest',
  40. 1: 'cylinder',
  41. 2: 'ball',
  42. 3: 'flex',
  43. 4: 'double',
  44. 5: 'treble',
  45. 6: 'extend'
  46. }
  47. PROJECT_VERSION: str = '0.0.1'
  48. DATA_PATH = './data'
  49. settings = Settings()