PYME.Acquire.ui.intensity_trace module¶
- class PYME.Acquire.ui.intensity_trace.IntensityTracePanel(parent, frame_wrangler, winid=-1, n_frames=1000)¶
Bases:
FastGraphPanel
If the square region select tool is active, will plot the average value within it over time. Note that the update rate is set by the GUI timer, not the camera frame rate.
- Parameters
- parentwx.Window
PYMEAcquire MainFrame / AUIFrame
- frame_wranglerPYME.Acquire.FrameWrangler
frame_wrangler object, which is grabbing new frames from the camera
- winidint, optional
direct pass-through to FastGraphPanel, by default -1
- n_framesint, optional
Number of frame-updates to store and display, by default 1000
- clear()¶
Clear the trace
- property do¶
get the display options. This is done lazily because it might not be created when this panel is instantiated.
- update_display(sender=None, **kwargs)¶
Updates the GUI display and does buffer shifting.
Note that this must be wired-up to the GUI timer, not the frameWrangler’s onFrame
- Parameters
- senderoptional
dispatch caller, included only to match the required function signature
- update_trace(sender=None, **kwargs)¶
Update trace intensity data with the current frame’s average value within the selected region (can be called separately from display). This is likely light-weight enough to be hooked to FrameWrangler.onFrame in most circumstances, although could be hooked to a lower-rate timer (e.g. onFrameGroup or time1) if desired.