Skip to content

← signal_processing package

FixGaps

Fix up data gaps in time series.

This node can be used to perform some basic "repairs" of gaps in time-series data to mitigate erratic behavior of later-stage processing nodes, such as filters and other signal processing. When a gap occurs in a time series, it means that a piece of signal is missing. If one were to stitch the data together as if the gap did not happen, then at the very least there will be jump in signal level, which causes filter "ringing" artifacts. This node can be used to correct level jumps by shifting the subsequent data by the correct amount. The node can also be used to rewrite the time stamps to make the gap undetectable to subsequent nodes. Note that this is not necessarily a good thing, since it can result in data being apparently co-located that may have been separated by an arbitrarily long stretch of data -- however, doing so will prevent "hard failures" where an algorithm would otherwise refuse to to run due to it not being able to handle gaps. Version 1.0.0

Ports/Properties

data

Data to process.

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: INOUT

gap_threshold

Gap length in seconds above which the stitcher kicks in.

  • verbose name: Gap Threshold
  • default value: 0.1
  • port type: FloatPort
  • value type: float (can be None)

stitch_level_jumps

Whether to fix level jumps by moving the time series following a gap up or down to match the signal level.

  • verbose name: Stitch Level Jumps
  • default value: True
  • port type: BoolPort
  • value type: bool (can be None)

squeeze_time_gaps

Whether to squeeze out gaps in the time stamps, making the time series appear continuous.

  • verbose name: Squeeze Time Gaps
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)