Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup default config values in test_missing_cross_section
Browse files Browse the repository at this point in the history
backmari committed Oct 17, 2024

Unverified

This user has not yet uploaded their public signing key.
1 parent 13b4f6c commit e659c59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ui/test_missing_cross_section.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# local imports
from reflectivity_ui.interfaces.configuration import Configuration
from reflectivity_ui.interfaces.main_window import MainWindow
from test.ui import ui_utilities

@@ -17,6 +18,7 @@ def test_missing_cross_section(qtbot):
proton charge. The application produces and empty reflectivity curve for On-On."""
main_window = MainWindow()
qtbot.addWidget(main_window)
Configuration.setup_default_values()
# load the run and find the total "intensity" of the x vs TOF plot
ui_utilities.setText(main_window.numberSearchEntry, "42100", press_enter=True)
intensity_off_on = np.sum(ui_utilities.data_from_plot2D(main_window.xtof_overview))

0 comments on commit e659c59

Please sign in to comment.