Skip to content

Commit 6e76975

Browse files
author
glass-ships
committed
resolve merge conflicts
2 parents 0718a84 + 56b727f commit 6e76975

File tree

7 files changed

+29
-22
lines changed

7 files changed

+29
-22
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
test-and-deploy:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313

1414
defaults:
1515
run:

docs/release_notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Next
2020
----
2121

2222
**Of interest to the User**:
23+
- MR #141: Add instrument geometry settings to reduction workflow
2324
- MR #138: remove right-click option "Display Metadata..." from the reduction table
2425
- MR #135: update popup message for v4 deprecation
2526
- MR #134: add column in the reduction table for constant Q binning during reduction

docs/user/load-template.rst

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,20 @@ Select `/SNS/REF_L/IPTS-26010/shared/autoreduce/REF_L_188298_auto_template.xml`.
1919
to proceed. There are several widgets on the UI. These are labeled with
2020
on the image below as follows:
2121

22-
A- The loaded files are listed in the table. The run numbers in green
23-
are editable. The user can click these numbers and change them to use
24-
the current template as a starting point.
22+
A: Item A allows the user to enter or browse for data and normalization files.
2523

26-
The check boxes on the left of the table allow the user to populate
27-
the main area of the UI (item B).
24+
B: Item B allows the user change a number of reduction parameters, including:
25+
26+
- the TOF binning and output Q binning
27+
- the calibration angle offset, which is given by the instrument scientist
28+
- the dead time correction settings
29+
- the instrument geometry parameters
30+
31+
C: Item C allows the user to pick a scaling factor file.
32+
33+
D: Panel D give basic information about the reflected run.
2834

29-
B- Each reflected run needs a normalization run (R is the ratio of the
35+
E: Each reflected run needs a normalization run (R is the ratio of the
3036
reflected beam and the direct beam). For this reason the main area of
3137
the UI is presented as two tabs, one for the reflected data (called Data),
3238
and one for the normalization (called Normalization). They both
@@ -45,14 +51,12 @@ on the image below as follows:
4551
Double-clicking on the y vs counts plot will pop up a larger plot that
4652
makes it easier to visualize and select the peak.
4753

48-
C- Item C allows the user change the TOF binning and the output Q binning.
49-
50-
D- Item D allows the user to change the calibration angle offset, which
51-
is given by the instrument scientist.
52-
53-
E- Item E allows the user to pick a scaling factor file.
54+
F: The loaded files are listed in the table. The run numbers in green
55+
are editable. The user can click these numbers and change them to use
56+
the current template as a starting point.
5457

55-
F- Panel F give basic information about the reflected run.
58+
The check boxes on the left of the table allow the user to populate
59+
the main area of the UI (item E).
5660

5761
.. image:: template-inspection.png
5862

docs/user/template-inspection.png

-154 KB
Loading

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
- pydantic
1515
- pip
1616
- pip:
17-
- git+https://github.com/neutrons/LiquidsReflectometer.git@v2.1.10#egg=lr_reduction
17+
- git+https://github.com/neutrons/LiquidsReflectometer.git@v2.1.11#egg=lr_reduction
1818
# documentation
1919
- sphinx
2020
- sphinx_rtd_theme

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ scipy
88
PyQt5
99
qtpy
1010
setuptools
11-
lr_reduction@git+https://github.com/neutrons/LiquidsReflectometer.git@v2.1.10#egg=lr_reduction
11+
lr_reduction@git+https://github.com/neutrons/LiquidsReflectometer.git@v2.1.11#egg=lr_reduction

test/unit/RefRed/test_main.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@ def test_mock_init(self, mock_main_window_init, mock_load_ui, mock_initialize_gu
3737
@mock.patch("qtpy.QtWidgets.QMainWindow.__init__")
3838
def test_load_configuration(
3939
self,
40-
mock_main_window_init, # noqa: ARG002
41-
mock_load_ui, # noqa: ARG002
42-
mock_initialize_gui, # noqa: ARG002
43-
mock_file_loaded_signal, # noqa: ARG002
44-
mock_load_configuration,
40+
mockMainWindowInit,
41+
mockLoadUI,
42+
mockInitializeGui,
43+
mockFileLoadedSignal,
44+
mockLoadConfiguration,
4545
):
4646
parent = mock.Mock()
4747
main_gui = MainGui(parent=parent)
4848
main_gui.load_configuration()
49-
mock_load_configuration.assert_called()
49+
mockLoadConfiguration.assert_called()
50+
51+
# Deadtime Settings tests
5052

5153
# Deadtime Settings tests
5254

0 commit comments

Comments
 (0)