config.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. 'reref': 'bipolar'
  29. }
  30. FINGERMODEL_IDS = {
  31. 'rest': 0,
  32. 'cylinder': 1,
  33. 'ball': 2,
  34. 'flex': 3,
  35. 'double': 4,
  36. 'treble': 5,
  37. 'extend': 6,
  38. 'hold': 7,
  39. }
  40. FINGERMODEL_IDS_INVERSE = {
  41. 0: 'rest',
  42. 1: 'cylinder',
  43. 2: 'ball',
  44. 3: 'flex',
  45. 4: 'double',
  46. 5: 'treble',
  47. 6: 'extend',
  48. 7: 'hold'
  49. }
  50. PROJECT_VERSION: str = '0.0.1'
  51. DATA_PATH = './data'
  52. MODEL_PATH = './static/models'
  53. settings = Settings()