Skip to content

Commit

Permalink
Fixed the xafs scan window after Firefly re-factoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Jul 1, 2024
1 parent 37696f7 commit 8aeb8d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/firefly/plans/xafs_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ def customize_ui(self):
self.ui.regions_spin_box.editingFinished.connect(self.update_regions)

# reset button
self.ui.pushButton.clicked.connect(self.reset_default_regions)
self.ui.reset_button.clicked.connect(self.reset_default_regions)

# Run scan button
self.ui.run_button.clicked.connect(self.queue_plan)

# connect checkboxes with all regions' check box
self.title_region.regions_all_checkbox.stateChanged.connect(
Expand Down
6 changes: 3 additions & 3 deletions src/firefly/plans/xafs_scan.ui
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<widget class="QPushButton" name="reset_button">
<property name="toolTip">
<string>Reset to default values</string>
</property>
Expand Down Expand Up @@ -143,8 +143,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>700</width>
<height>156</height>
<width>581</width>
<height>198</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
Expand Down
2 changes: 1 addition & 1 deletion src/firefly/tests/test_xafs_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def check_item(item):
qtbot.mouseClick(display.ui.run_button, QtCore.Qt.LeftButton)


def test_xafs_scan_plan_queued_energies_k_mixed(display, qtbot):
def test_xafs_scan_plan_queued_energies_k_mixed(qtbot, display):
display.ui.regions_spin_box.setValue(2)
display.edge_combo_box.setCurrentText("Pt L3 (11500.8 eV)")

Expand Down

0 comments on commit 8aeb8d3

Please sign in to comment.