Skip to content

Feat: create lsl reader and config parser#30

Open
MichalSzandar wants to merge 5 commits into
mainfrom
feat/create-lsl-reader-and-config
Open

Feat: create lsl reader and config parser#30
MichalSzandar wants to merge 5 commits into
mainfrom
feat/create-lsl-reader-and-config

Conversation

@MichalSzandar

@MichalSzandar MichalSzandar commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator
  • Add LSLReader
  • Add ConfigParser - json -> ExperimentConfig (new structure that stores information about device name, montage standard, expected channel count, channels' labels etc.)
  • Remove dummy tests
  • Update gcovr config (fails below 90% coverage)
  • Update readme

Here is an example of config.json file

{
  "config_version": "1.0",
  "device_name": "OpenBCI Cyton 8ch",
  "montage_standard": "10-20",

  "lsl_stream": {
    "name": "obci_eeg1",
    "type": "EEG",
    "source_id": "cyton-a1b2c3",
    "expected_channel_count": 8,
    "expected_sample_rate_hz": 250
  },

  "reference": {
    "label": "linked_mastoids",
    "scheme": "physical"
  },
  "ground": {
    "label": "Fpz"
  },

  "channels": [
    { "index": 0, "label": "Fz",  "enabled": true,  "unit": "microvolts" },
    { "index": 1, "label": "Cz",  "enabled": true,  "unit": "microvolts" },
    { "index": 2, "label": "Pz",  "enabled": true,  "unit": "microvolts" },
    { "index": 3, "label": "Oz",  "enabled": true,  "unit": "microvolts" },
    { "index": 4, "label": "P3",  "enabled": true,  "unit": "microvolts" },
    { "index": 5, "label": "P4",  "enabled": true,  "unit": "microvolts" },
    { "index": 6, "label": "O1",  "enabled": true,  "unit": "microvolts" },
    { "index": 7, "label": "O2",  "enabled": false, "unit": "microvolts" }
  ],

  "impedance_check": {
    "supported": true,
    "threshold_kohm": 5.0
  }
}

@MichalSzandar MichalSzandar self-assigned this Jul 1, 2026
@MichalSzandar MichalSzandar linked an issue Jul 1, 2026 that may be closed by this pull request
@MichalSzandar MichalSzandar changed the title Feat: create lsl reader and config Feat: create lsl reader and config parser Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create LSLReader class

1 participant