ezmsg.lsl.outlet#
Functions
- generate_source_id(name, stream_type, channel_count, nominal_srate, channel_format)[source]#
Generate a stable source_id hash from stream metadata.
Classes
- class LSLOutletSettings(stream_name: str | None = None, stream_type: str | None = None, map_file: str | None = None, use_message_timestamp: bool = True, assume_lsl_clock: bool = False)[source]#
Bases:
Settings- Parameters:
- map_file: str | None = None#
Path to file containing a list of channel names and locations. This feature is experimental and not tested.
- use_message_timestamp: bool = True#
Whether to push the data with the incoming timestamps (True, default) or to ignore the incoming timestamps and push the data with the current pylsl.local_clock (False). When True, the incoming data must have a “time” dimension.
- assume_lsl_clock: bool = False#
When use_message_timestamp is True, this indicates whether the incoming timestamps were already in the lsl clock (see
LslInletSettings). If False, the incoming timestamps are assumed to be in the system time.time clock and are converted to the lsl clock. Note: Ignored when use_message_timestamp is False.
- class LSLOutletUnit(*args, settings=None, **kwargs)[source]#
Bases:
UnitRepresents a node in a Labgraph graph that subscribes to messages in a Labgraph topic and forwards them by writing to an LSL outlet.
- Parameters:
stream_name – The name of the created LSL outlet.
stream_type – The type of the created LSL outlet.
settings (Settings | None)
- INPUT_SIGNAL = InputStream:unlocated[<class 'ezmsg.util.messages.axisarray.AxisArray'>]()#
- SETTINGS#
alias of
LSLOutletSettings
- STATE#
alias of
LSLOutletState
- class OutletProcessor(*args, settings=None, **kwargs)[source]#
Bases:
object- Parameters:
settings (LSLOutletSettings | None)
- __init__(*args, settings=None, **kwargs)[source]#
- Parameters:
settings (LSLOutletSettings | None)
- property state: LSLOutletState#
- generate_source_id(name, stream_type, channel_count, nominal_srate, channel_format)[source]#
Generate a stable source_id hash from stream metadata.
- class LSLOutletSettings(stream_name: str | None = None, stream_type: str | None = None, map_file: str | None = None, use_message_timestamp: bool = True, assume_lsl_clock: bool = False)[source]#
Bases:
Settings- Parameters:
- map_file: str | None = None#
Path to file containing a list of channel names and locations. This feature is experimental and not tested.
- use_message_timestamp: bool = True#
Whether to push the data with the incoming timestamps (True, default) or to ignore the incoming timestamps and push the data with the current pylsl.local_clock (False). When True, the incoming data must have a “time” dimension.
- assume_lsl_clock: bool = False#
When use_message_timestamp is True, this indicates whether the incoming timestamps were already in the lsl clock (see
LslInletSettings). If False, the incoming timestamps are assumed to be in the system time.time clock and are converted to the lsl clock. Note: Ignored when use_message_timestamp is False.
- class OutletProcessor(*args, settings=None, **kwargs)[source]#
Bases:
object- Parameters:
settings (LSLOutletSettings | None)
- __init__(*args, settings=None, **kwargs)[source]#
- Parameters:
settings (LSLOutletSettings | None)
- property state: LSLOutletState#
- class LSLOutletUnit(*args, settings=None, **kwargs)[source]#
Bases:
UnitRepresents a node in a Labgraph graph that subscribes to messages in a Labgraph topic and forwards them by writing to an LSL outlet.
- Parameters:
stream_name – The name of the created LSL outlet.
stream_type – The type of the created LSL outlet.
settings (Settings | None)
- INPUT_SIGNAL = InputStream:unlocated[<class 'ezmsg.util.messages.axisarray.AxisArray'>]()#
- SETTINGS#
alias of
LSLOutletSettings
- STATE#
alias of
LSLOutletState