FeatureFinder

Module for FeatureFinder

../../../_images/feature_finder.png
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)

post_init_setup() → None[source]

Need to wait for the object to exist for its macros to be available

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.

update_detector_egu(value: str) → None[source]

Call back to update the detector EGU units when they change.

update_invert() → None[source]

Update the optional x-axis inversion for plotting purposes

update_lower_limit() → None[source]

Update the lower limit.

update_motor_egu(value) → None[source]

Call back to update the motor EGU units when they change.

update_plot_data() → None[source]

Update the plot after motor movement completes.

update_step_size() → None[source]

Update the step size.

update_upper_limit() → None[source]

Update the lower limit.