config.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. }
  37. FINGERMODEL_IDS_INVERSE = {
  38. 0: 'rest',
  39. 1: 'cylinder',
  40. 2: 'ball',
  41. 3: 'flex',
  42. 4: 'double',
  43. 5: 'treble'
  44. }
  45. PROJECT_VERSION: str = '0.0.1'
  46. DATA_PATH = './data'
  47. settings = Settings()