Skip to content
Snippets Groups Projects

Revised CalCat API

Merged Thomas Kluyver requested to merge calcat-api-2 into master
Compare and Show latest version
1 file
+ 5
6
Compare changes
  • Side-by-side
  • Inline
@@ -82,13 +82,12 @@ 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"DSSC{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
# When we look at a specific constant, module LPD05 is missing
assert lpd_cd["Offset"].module_nums == list(range(0, 5)) + list(range(6, 16))
@pytest.mark.xfail
Loading