Skip to content

Commit 472b270

Browse files
committed
fix two tests
1 parent 9b8790c commit 472b270

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_dead_time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ def test_full_reduction(nexus_dir, template_dir):
9292
template_data = template.read_template(template_path, sequence_number)
9393
template_data.dead_time = True
9494

95-
_, r1, _ = template.process_from_template_ws(ws, template_data)
95+
_, r1, _, _ = template.process_from_template_ws(ws, template_data)
9696

9797
template_data.dead_time = False
98-
_, r2, _ = template.process_from_template_ws(ws, template_data)
98+
_, r2, _, _ = template.process_from_template_ws(ws, template_data)
9999

100100
corr = r1 / r2
101101
for c in corr:

tests/test_reduction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_q_summing_as_option(template_dir, nexus_dir, template_file, q_summing,
107107
ws_sc = mtd_api.Load("REF_L_%s" % 198415)
108108

109109
with patch.object(event_reduction.EventReflectivity, "specular") as mock_specular:
110-
mock_specular.return_value = (np.array([1, 2, 3]), np.array([0.1, 0.2]), np.array([0.01, 0.02]))
110+
mock_specular.return_value = (np.array([1, 2, 3]), np.array([0.1, 0.2]), np.array([0.01, 0.02]), np.array([0.01, 0.02]))
111111

112112
qz_mid, refl, _, dq_over_q, meta_data = template.process_from_template_ws(
113113
ws_sc, template_path, tof_weighted=tof_weighted, info=True, q_summing=q_summing

0 commit comments

Comments
 (0)