get_channel_names
dareplane_utils.stream_watcher.lsl_stream_watcher.get_channel_names(inf)Extract channel names from the LSL stream info.
This function parses the XML metadata of the LSL stream info to extract the channel names. If the channel information is not available, it returns default channel names in the format “ch_1”, “ch_2”, etc.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| inf | pylsl.StreamInfo | The LSL stream info object containing the metadata. | required |
Returns
| Name | Type | Description |
|---|---|---|
| list[str] | A list of channel names extracted from the stream info. |