DiffractionExperiment: Fix starting storage cell
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user