Skip to content
Snippets Groups Projects
Commit 3b573aa4 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

More silly mistakes

parent b9ba6200
No related branches found
No related tags found
1 merge request!885Revised CalCat API
......@@ -82,10 +82,9 @@ def test_LPD_constant_missing():
)
# Constants are missing for 1 module (LPD05), but it was still included in
# the PDUs for the detector, so it should still appear in the lists.
modnos = range(16)
assert lpd_cd.aggregator_names == [f"LPD{m:02}" for m in modnos]
assert lpd_cd.module_nums == modnos
assert lpd_cd.qm_names == [f"Q{(m // 4) + 1}M{(m % 4) + 1}" for m in modnos]
assert lpd_cd.aggregator_names == [f"LPD{m:02}" for m in range(16)]
assert lpd_cd.module_nums == list(range(16))
assert lpd_cd.qm_names == [f"Q{(m // 4) + 1}M{(m % 4) + 1}" for m in range(16)]
assert len(lpd_cd["Offset"].module_nums) == 16
assert len(lpd_cd["Offset"].constants) == 15
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment