DiffractionExperiment: Fix starting storage cell

This commit is contained in:
2023-05-14 15:21:31 +02:00
parent 3804056998
commit 1ef74b0a53
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -632,6 +632,7 @@ TEST_CASE("DiffractionExperiment_StorageCells","[DiffractionExperiment]") {
REQUIRE(x.GetSummation() == 1);
REQUIRE(x.GetImageNumPerTrigger() == 5);
REQUIRE(x.GetNumTriggers() == num_triggers);
REQUIRE(x.GetStorageCellStart() == 15);
REQUIRE_THROWS(x.StorageCells(5));
REQUIRE_THROWS(x.StorageCells(0));
@@ -642,12 +643,15 @@ TEST_CASE("DiffractionExperiment_StorageCells","[DiffractionExperiment]") {
REQUIRE_NOTHROW(x.StorageCells(4));
REQUIRE(x.GetStorageCellNumber() == 4);
REQUIRE(x.GetStorageCellStart() == 12);
REQUIRE_NOTHROW(x.StorageCells(8));
REQUIRE(x.GetStorageCellNumber() == 8);
REQUIRE(x.GetStorageCellStart() == 8);
x.StorageCells(16);
REQUIRE(x.GetStorageCellNumber() == 16);
REQUIRE(x.GetStorageCellStart() == 0);
REQUIRE(x.GetSummation() == 1);
REQUIRE(x.GetImageNumPerTrigger() == x.GetStorageCellNumber());
REQUIRE(x.GetFrameNumPerTrigger() == x.GetStorageCellNumber());