mne.realtime.
MockRtClient
(raw, verbose=None)[source]¶Mock Realtime Client.
Parameters: | raw : instance of Raw object
verbose : bool, str, int, or None
|
---|
Methods
__hash__ () <==> hash(x) |
|
get_event_data (event_id, tmin, tmax, picks) |
Simulate the data for a particular event-id. |
get_measurement_info () |
Return the measurement info. |
register_receive_callback (x) |
Fake API boilerplate. |
send_data (epochs, picks, tmin, tmax, buffer_size) |
Read from raw object and send them to RtEpochs for processing. |
start_receive_thread (x) |
Fake API boilerplate. |
unregister_receive_callback (x) |
Fake API boilerplate. |
__hash__
() <==> hash(x)¶get_event_data
(event_id, tmin, tmax, picks, stim_channel=None, min_duration=0)[source]¶Simulate the data for a particular event-id.
The epochs corresponding to a particular event-id are returned. The method remembers the epoch that was returned in the previous call and returns the next epoch in sequence. Once all epochs corresponding to an event-id have been exhausted, the method returns None.
Parameters: | event_id : int
tmin : float
tmax : float
picks : array-like of int
stim_channel : None | string | list of string
min_duration : float
|
---|---|
Returns: | data : 2D array with shape [n_channels, n_times]
|
get_measurement_info
()[source]¶Return the measurement info.
Returns: | self.info : dict
|
---|
send_data
(epochs, picks, tmin, tmax, buffer_size)[source]¶Read from raw object and send them to RtEpochs for processing.
Parameters: | epochs : instance of RtEpochs
picks : array-like of int
tmin : float
tmax : float
buffer_size : int
|
---|