neutrons / PyVDrive

A data reduction and analysis software for (SNS) VULCAN based on PyQt.
2 stars 0 forks source link

Event filtering assistant UI shows manually generated splitters #190

Closed wdzhou closed 5 years ago

wdzhou commented 5 years ago

Event filtering assistant UI shall be able to show the splitters on the sample logs if the splitters are generated manually either by (1) manual selection (2) input files

Tasks

wdzhou commented 5 years ago

Reproduce

  1. Load manual slicer from a file
  2. Plot a log
  3. Plot another log
  4. Try to see the segments
    [DB...BAT] Set loadframe.furnace1 Y (1370.159579, 1371.698656) in color black as the figure's title.
    ExportTimeSeriesLog-[Notice] ExportTimeSeriesLog started
    ExportTimeSeriesLog-[Notice] ExportTimeSeriesLog successful, Duration 0.00 seconds
    [DB...BAT] Set loadframe.strain Y (-0.000437, -0.000225) in color black as the figure's title.
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py", line 279, in mouseMoveEvent
    FigureCanvasBase.motion_notify_event(self, x, y, guiEvent=event)
    File "/usr/lib/python2.7/dist-packages/matplotlib/backend_bases.py", line 1952, in motion_notify_event
    self.callbacks.process(s, event)
    File "/usr/lib/python2.7/dist-packages/matplotlib/cbook.py", line 563, in process
    proxy(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/matplotlib/cbook.py", line 430, in __call__
    return mtd(*args, **kwargs)
    File "/home/wzz/Projects/PyVDrive/build/lib.linux-x86_64-2.7/pyvdrive/interface/gui/samplelogview.py", line 416, in on_mouse_motion
    self.select_picker(picker_id)
    File "/home/wzz/Projects/PyVDrive/build/lib.linux-x86_64-2.7/pyvdrive/interface/gui/samplelogview.py", line 441, in select_picker
    self.update_indicator(self._currentSelectedPicker, color='blue')
    File "/home/wzz/Projects/PyVDrive/build/lib.linux-x86_64-2.7/pyvdrive/interface/gui/mplgraphicsview.py", line 953, in update_indicator
    self._myCanvas.updateLine(ikey=canvas_line_index, vecx=None, vecy=y_range, linecolor=color)
    File "/home/wzz/Projects/PyVDrive/build/lib.linux-x86_64-2.7/pyvdrive/interface/gui/mplgraphicsview.py", line 1660, in updateLine
    ''.format(ikey, self._lineDict.keys()))
    KeyError: 'Line ID 4 does not existing MPL existing keys: [7]'