Module Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias identifier FunctionDef arguments args NameParam defaults body Expr Str TryExcept body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr NameLoad Print BinOpMod Str NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Num Num NameLoad AttributeLoad NameLoad attr Num NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore NameLoad While CompareLt NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Break handlers ExceptHandler body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr While CompareLt NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num orelse Break If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Num BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num orelse Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad BinOpMult NameLoad AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad BinOpMult NameLoad AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Assign SubscriptStore NameLoad Index Str ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse If BoolOpAnd Call AttributeLoad NameLoad attr Str BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub AttributeLoad NameLoad attr Num Assign NameStore BinOpAdd BinOpSub NameLoad NameLoad Num Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad Num Num keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad BinOpSub BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad attr Expr Yield NameLoad decorator_list decorator_list
N/A N/A copy N/A re N/A threading N/A time N/A numpy np io _empty_info io.pick pick_info io.constants FIFF epochs EpochsArray utils logger warn externals.FieldTrip Client FtClient _buffer_recv_worker N/A N/A ft_client N/A N/A N/A Worker thread that constantly receives buffers. N/A N/A N/A raw_buffer N/A N/A ft_client iter_raw_buffers N/A N/A N/A N/A ft_client _push_raw_buffer raw_buffer N/A N/A N/A RuntimeError N/A err N/A N/A N/A ft_client _recv_thread None N/A N/A Buffer receive thread stopped: %s err N/A FieldTripClient N/A object N/A N/A  Realtime FieldTrip client

    Parameters
    ----------
    info : dict | None
        The measurement info read in from a file. If None, it is guessed from
        the Fieldtrip Header object.
    host : str
        Hostname (or IP address) of the host where Fieldtrip buffer is running.
    port : int
        Port to use for the connection.
    wait_max : float
        Maximum time (in seconds) to wait for Fieldtrip buffer to start
    tmin : float | None
        Time instant to start receiving buffers. If None, start from the latest
        samples available.
    tmax : float
        Time instant to stop receiving buffers.
    buffer_size : int
        Size of each buffer in terms of number of samples.
    verbose : bool, str, int, or None
        Log verbosity see mne.verbose.
     __init__ N/A N/A self info host port wait_max tmin tmax buffer_size verbose N/A None localhost 1972 30 None N/A np inf 1000 None N/A N/A N/A self verbose verbose N/A N/A self info info N/A N/A self wait_max wait_max N/A N/A self tmin tmin N/A N/A self tmax tmax N/A N/A self buffer_size buffer_size N/A N/A self host host N/A N/A self port port N/A N/A self _recv_thread None N/A N/A self _recv_callbacks N/A list N/A __enter__ N/A N/A self N/A N/A N/A N/A self ft_client N/A FtClient N/A N/A N/A logger info FieldTripClient: Waiting for server to start N/A N/A start_time current_time N/A N/A N/A time time N/A N/A time time N/A success False N/A N/A current_time N/A start_time N/A self wait_max N/A N/A N/A N/A N/A N/A N/A self ft_client connect N/A self host N/A self port N/A N/A N/A logger info FieldTripClient: Connected N/A success True N/A N/A N/A N/A N/A current_time N/A N/A time time N/A N/A N/A time sleep 0.1 N/A N/A success N/A N/A N/A RuntimeError Could not connect to FieldTrip Buffer N/A N/A N/A logger info FieldTripClient: Retrieving header N/A N/A start_time current_time N/A N/A N/A time time N/A N/A time time N/A N/A current_time N/A start_time N/A self wait_max N/A N/A N/A self ft_header N/A N/A N/A self ft_client getHeader N/A N/A N/A self ft_header None N/A N/A current_time N/A N/A time time N/A N/A N/A time sleep 0.1 N/A N/A N/A N/A N/A self ft_header None N/A N/A N/A RuntimeError Failed to retrieve Fieldtrip header! N/A N/A N/A N/A logger info FieldTripClient: Header retrieved N/A N/A self info N/A N/A self _guess_measurement_info N/A N/A self ch_names N/A N/A self ft_header labels N/A sfreq N/A N/A self info N/A sfreq N/A N/A N/A self tmin None N/A N/A N/A self tmin_samp N/A max 0 N/A N/A N/A self ft_header nSamples 1 N/A N/A N/A self tmin_samp N/A int N/A round N/A sfreq N/A self tmin N/A N/A N/A self tmax N/A np inf N/A N/A N/A self tmax_samp N/A int N/A round N/A sfreq N/A self tmax N/A N/A N/A self tmax_samp N/A N/A N/A np iinfo N/A np uint32 max N/A self N/A __exit__ N/A N/A self type value traceback N/A N/A N/A N/A N/A N/A self ft_client disconnect N/A _guess_measurement_info N/A N/A self N/A N/A N/A 
        Creates a minimal Info dictionary required for epoching, averaging
        et al.
         N/A N/A N/A self info None N/A N/A N/A warn Info dictionary not provided. Trying to guess it from FieldTrip Header object N/A info N/A _empty_info N/A N/A self ft_header fSample N/A N/A info N/A comps N/A list N/A N/A info N/A projs N/A list N/A N/A info N/A bads N/A list N/A N/A info N/A chs N/A N/A N/A idx ch N/A enumerate N/A N/A self ft_header labels N/A N/A this_info N/A dict N/A N/A this_info N/A scanno idx N/A N/A this_info N/A logno N/A int N/A N/A N/A re findall [^\W\d_]+|\d+ ch N/A -1 N/A N/A N/A ch startswith EEG N/A N/A N/A this_info N/A kind N/A FIFF FIFFV_EEG_CH N/A N/A N/A N/A ch startswith MEG N/A N/A N/A this_info N/A kind N/A FIFF FIFFV_MEG_CH N/A N/A N/A N/A ch startswith MCG N/A N/A N/A this_info N/A kind N/A FIFF FIFFV_MCG_CH N/A N/A N/A N/A ch startswith EOG N/A N/A N/A this_info N/A kind N/A FIFF FIFFV_EOG_CH N/A N/A N/A N/A ch startswith EMG N/A N/A N/A this_info N/A kind N/A FIFF FIFFV_EMG_CH N/A N/A N/A N/A ch startswith STI N/A N/A N/A this_info N/A kind N/A FIFF FIFFV_STIM_CH N/A N/A N/A N/A ch startswith ECG N/A N/A N/A this_info N/A kind N/A FIFF FIFFV_ECG_CH N/A N/A N/A N/A ch startswith MISC N/A N/A N/A this_info N/A kind N/A FIFF FIFFV_MISC_CH N/A N/A this_info N/A range 1.0 N/A N/A this_info N/A cal 1.0 N/A N/A this_info N/A ch_name ch N/A N/A this_info N/A loc None N/A N/A N/A ch startswith EEG N/A N/A N/A this_info N/A coord_frame N/A FIFF FIFFV_COORD_HEAD N/A N/A N/A N/A ch startswith MEG N/A N/A N/A this_info N/A coord_frame N/A FIFF FIFFV_COORD_DEVICE N/A N/A N/A this_info N/A coord_frame N/A FIFF FIFFV_COORD_UNKNOWN N/A N/A N/A N/A ch startswith MEG N/A N/A ch endswith 1 N/A N/A N/A this_info N/A unit N/A FIFF FIFF_UNIT_T N/A N/A N/A N/A N/A ch startswith MEG N/A N/A N/A ch endswith 2 N/A N/A ch endswith 3 N/A N/A N/A this_info N/A unit N/A FIFF FIFF_UNIT_T_M N/A N/A N/A this_info N/A unit N/A FIFF FIFF_UNIT_V N/A N/A this_info N/A unit_mul 0 N/A N/A N/A N/A info N/A chs append this_info N/A N/A N/A info _update_redundant N/A N/A N/A info _check_consistency N/A N/A N/A N/A self info N/A projs N/A list N/A this_info N/A N/A self info N/A chs N/A N/A N/A this_info N/A range 1.0 N/A N/A this_info N/A cal 1.0 N/A N/A this_info N/A unit_mul 0 N/A info N/A N/A copy deepcopy N/A self info N/A info N/A get_measurement_info N/A N/A self N/A N/A N/A Returns the measurement info.

        Returns
        -------
        self.info : dict
            The measurement info.
         N/A N/A self info N/A get_data_as_epoch N/A N/A self n_samples picks N/A 1024 None N/A N/A Returns last n_samples from current time.

        Parameters
        ----------
        n_samples : int
            Number of samples to fetch.
        picks : array-like of int | None
            If None all channels are kept
            otherwise the channels indices in picks are kept.

        Returns
        -------
        epoch : instance of Epochs
            The samples fetched as an Epochs object.

        See Also
        --------
        Epochs.iter_evoked
         N/A ft_header N/A N/A N/A self ft_client getHeader N/A last_samp N/A N/A ft_header nSamples 1 N/A start N/A N/A last_samp n_samples 1 N/A stop last_samp N/A events N/A N/A np expand_dims N/A N/A np array N/A start 1 1 axis 0 N/A data N/A N/A N/A N/A N/A self ft_client getData N/A start stop transpose N/A info N/A self info N/A N/A picks None N/A N/A info N/A pick_info info picks N/A epoch N/A EpochsArray N/A N/A data N/A picks N/A N/A np newaxis info events N/A epoch N/A register_receive_callback N/A N/A self callback N/A N/A N/A Register a raw buffer receive callback.

        Parameters
        ----------
        callback : callable
            The callback. The raw buffer is passed as the first parameter
            to callback.
         N/A N/A callback N/A self _recv_callbacks N/A N/A N/A N/A N/A self _recv_callbacks append callback N/A unregister_receive_callback N/A N/A self callback N/A N/A N/A Unregister a raw buffer receive callback

        Parameters
        ----------
        callback : callable
            The callback to unregister.
         N/A N/A callback N/A self _recv_callbacks N/A N/A N/A N/A N/A self _recv_callbacks remove callback N/A _push_raw_buffer N/A N/A self raw_buffer N/A N/A N/A Push raw buffer to clients using callbacks. N/A callback N/A self _recv_callbacks N/A N/A N/A callback raw_buffer N/A start_receive_thread N/A N/A self nchan N/A N/A N/A Start the receive thread.

        If the measurement has not been started, it will also be started.

        Parameters
        ----------
        nchan : int
            The number of channels in the data.
         N/A N/A N/A self _recv_thread None N/A N/A N/A self _recv_thread N/A N/A threading Thread target _buffer_recv_worker args N/A self N/A N/A N/A self _recv_thread daemon True N/A N/A N/A N/A self _recv_thread start N/A stop_receive_thread N/A N/A self stop_measurement N/A False N/A N/A Stop the receive thread

        Parameters
        ----------
        stop_measurement : bool
            Also stop the measurement.
         N/A N/A N/A self _recv_thread None N/A N/A N/A N/A N/A self _recv_thread stop N/A N/A self _recv_thread None N/A iter_raw_buffers N/A N/A self N/A N/A N/A Return an iterator over raw buffers

        Returns
        -------
        raw_buffer : generator
            Generator for iteration over raw buffers.
         N/A iter_times N/A zip N/A range N/A self tmin_samp N/A self tmax_samp N/A self buffer_size N/A range N/A N/A N/A self tmin_samp N/A self buffer_size 1 N/A self tmax_samp N/A self buffer_size N/A N/A ii N/A start stop N/A enumerate iter_times N/A N/A N/A N/A N/A self ft_client wait stop N/A N/A N/A np iinfo N/A np uint32 max N/A N/A N/A np iinfo N/A np uint32 max N/A raw_buffer N/A N/A N/A N/A N/A self ft_client getData N/A start stop transpose N/A N/A raw_buffer N/A N/A