Epoching

class neuxus.nodes.epoching.MarkerBasedSeparation(input_port, marker_input_port)[source]

Cut a continuous signal in epoch, separation of epoch are set each time a Marker come

Attributes:
  • output (Port): epoched output port

Args:
  • input_port (Port): input signal

  • marker_input_port (Port): input markers

get_end_time()[source]

Test if a new marker arrived and return its timestamp as end of last epoch else return None

class neuxus.nodes.epoching.StimulationBasedEpoching(input_port, marker_input_port, stimulation, offset, duration)[source]

Slices signal into epoch of a desired length following a stimulation event

Attributes:
  • output (Port): epoched output port

Args:
  • input_port (Port): input signal

  • marker_input_port (Port): input markers

  • stimulation (int or float or str): stimulation that trigger a new epoching, the other event will be ignored, be carefull with the type of stimulation

  • offset (float): offset to wait before starting epoching when receiving the stimulation

  • duration (float): duration of epochs

class neuxus.nodes.epoching.TimeBasedEpoching(input_port, duration, interval)[source]

Generates signal ‘slices’ or ‘blocks’ having a specified duration and interval

Attributes:
  • output: output Port used to share data to other nodes

Args:
  • input_port (Port): Input signal (type ‘signal’ or ‘epoch’)

  • duration (float): Length of epoched signal

  • interval (float): Time interval between two consecutive epochs for signal