Skip to content

Commit 4106fe8

Browse files
committed
Small typo in test adaptation.
1 parent 1ca42fe commit 4106fe8

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

tests/data/all_tests.list

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,22 @@ tests/test_line_tools.py::test_line_accessor[1-ContextCpu]
159159
tests/test_line_tools.py::test_line_accessor[1-ContextCpu:auto]
160160
tests/test_line_tools.py::test_line_accessor[2-ContextCpu]
161161
tests/test_line_tools.py::test_line_accessor[2-ContextCpu:auto]
162-
tests/test_lossmap.py::test_lossmap_everest[B1H-ContextCpu]
163-
tests/test_lossmap.py::test_lossmap_everest[B1H-ContextCpu:auto]
164-
tests/test_lossmap.py::test_lossmap_everest[B2V-ContextCpu]
165-
tests/test_lossmap.py::test_lossmap_everest[B2V-ContextCpu:auto]
166-
tests/test_lossmap.py::test_lossmap_everest[B1V_crystals-ContextCpu]
167-
tests/test_lossmap.py::test_lossmap_everest[B1V_crystals-ContextCpu:auto]
168-
tests/test_lossmap.py::test_lossmap_everest[B2H_crystals-ContextCpu]
169-
tests/test_lossmap.py::test_lossmap_everest[B2H_crystals-ContextCpu:auto]
162+
tests/test_lossmap.py::test_lossmap_everest_with_plot[B1H-ContextCpu]
163+
tests/test_lossmap.py::test_lossmap_everest_with_plot[B1H-ContextCpu:auto]
164+
tests/test_lossmap.py::test_lossmap_everest_with_plot[B2V-ContextCpu]
165+
tests/test_lossmap.py::test_lossmap_everest_with_plot[B2V-ContextCpu:auto]
166+
tests/test_lossmap.py::test_lossmap_everest_with_plot[B1V_crystals-ContextCpu]
167+
tests/test_lossmap.py::test_lossmap_everest_with_plot[B1V_crystals-ContextCpu:auto]
168+
tests/test_lossmap.py::test_lossmap_everest_with_plot[B2H_crystals-ContextCpu]
169+
tests/test_lossmap.py::test_lossmap_everest_with_plot[B2H_crystals-ContextCpu:auto]
170+
tests/test_lossmap.py::test_lossmap_everest_without_plot[B1H-ContextCpu]
171+
tests/test_lossmap.py::test_lossmap_everest_without_plot[B1H-ContextCpu:auto]
172+
tests/test_lossmap.py::test_lossmap_everest_without_plot[B2V-ContextCpu]
173+
tests/test_lossmap.py::test_lossmap_everest_without_plot[B2V-ContextCpu:auto]
174+
tests/test_lossmap.py::test_lossmap_everest_without_plot[B1V_crystals-ContextCpu]
175+
tests/test_lossmap.py::test_lossmap_everest_without_plot[B1V_crystals-ContextCpu:auto]
176+
tests/test_lossmap.py::test_lossmap_everest_without_plot[B2H_crystals-ContextCpu]
177+
tests/test_lossmap.py::test_lossmap_everest_without_plot[B2H_crystals-ContextCpu:auto]
170178
tests/test_rf_sweep.py::test_rf_sweep[DP pos-ContextCpu]
171179
tests/test_rf_sweep.py::test_rf_sweep[DP pos-ContextCpu:auto]
172180
tests/test_rf_sweep.py::test_rf_sweep[DP neg-ContextCpu]

tests/test_lossmap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _test_lossmap_everest(beam, plane, npart, interpolation, ignore_crystals, te
6666
line.track(part, num_turns=2)
6767
line.scattering.disable()
6868
this_id = f"B{beam}{plane}-{npart}-{interpolation}-{ignore_crystals}-{test_context}"
69-
_assert_lossmap(beam, npart, line, part, tcp, interpolation, ignore_crystals, 'EverestCollimator', 'EverestCrystal', this_id)
69+
ThisLM = _assert_lossmap(beam, npart, line, part, tcp, interpolation, ignore_crystals, 'EverestCollimator', 'EverestCrystal', this_id)
7070
if do_plot:
7171
ThisLM.plot(show=False, savefig=f"test-{this_id}.jpg")
7272
assert Path(f"test-{this_id}.jpg").exists()
@@ -142,3 +142,4 @@ def _assert_lossmap(beam, npart, line, part, tcp, interpolation, ignore_crystals
142142
assert np.all([s < lm['machine_length'] for s in lm['aperture']['s']])
143143
assert lm['interpolation'] == interpolation
144144
assert lm['reversed'] == line_is_reversed
145+
return ThisLM

0 commit comments

Comments
 (0)