FeatureFinder
Module for FeatureFinder
- class pcdswidgets.common.tools.feature_finder.FeatureFinder(parent=None, macros=None)[source]
- after_set_macro(macro_name: str, value: str) None[source]
Overriding the parent method for this to handle PyDMWidget channel swapping
- Parameters:
macro_name (str) – key name of the macro. In this widget, one of: [‘motor’, ‘detector’]
value (str) – The value of the macro. In this widget, this is a PV.
- confirm_pv_changes(dialog: QDialog)[source]
Show confirmation dialog before applying PV changes.
- Parameters:
dialog (QDialog) – The parent dialog to close after confirmation
- connect_detector() None[source]
Once the meter macro is available, connect all relevant widgets and update attr.
- connect_limits() None[source]
Connect the scan limit functions to their widgets, then format them. If they’re already connected, update them.
- connect_motor() None[source]
Once the motor macro is available, connect all relevant attr, widgets, etc.
- connect_motor_buttons() None[source]
Connect the motor widgets to their appropriate slots, presumptively after pydm already expanded macros.
- invert_x_axis() None[source]
Update the plot after the inversion state changes, causes the plot to update immediately.
- load_settings() None[source]
Load saved settings from the config file for this motor/detector pair.
- on_motor_done_moving(val: int) None[source]
Monitor motor.DMOV falling edge to detect when movement completes. Return early if movement is not from the step functions.
- Parameters:
val (int) – motor.DMOV field (0 = moving, 1 = done)
- save_settings() None[source]
Save current settings to the config file for this motor/detector pair.
- setup_plot() None[source]
Configure the scatter plot. PyDMScatterPlot should’ve made this easy, but since we only want data to update when the steps are completed, it complicates things.
- show_change_pvs_dialog()[source]
Show a dialog to change the motor and detector PV names. Includes a confirmation step before applying changes.