FdDistanceRangeSelector

lumicks.pylake.FdDistanceRangeSelector

class FdDistanceRangeSelector(fd_curves, max_gap=3)

Notebook widget for selecting data ranges by distance.

Open a widget used to select distance ranges.

Please refer to the tutorial for more information.

Actions:
  • left-click – Define distance ranges by clicking the left and then the right boundary of the region you wish to select.

  • right-click – Remove previously selected distance range.

Parameters:
  • fd_curves (dict) – Dictionary of FdCurve.

  • max_gap (int) – Sometimes the distance bounds are exceeded by short sections of data due to noise. The max_gap parameter controls how many data points have to exceed the threshold to be considered not part of the slice.

property fdcurves

Return a dictionary with the selections.

Each dictionary value contains a list of FdCurve instances with the individual data selections.

property ranges

Return a dictionary with selection timestamps.

Each dictionary value contains a list of arrays containing start and stop timestamps for the individual selections.