DiffractionExperiment: Move internal variables to a C++ structure
This commit is contained in:
@@ -663,7 +663,7 @@ TEST_CASE("DiffractionExperiment_LoadDatasetSettings", "[DiffractionExperiment]"
|
||||
REQUIRE(x.GetDataFileCount() == 5);
|
||||
REQUIRE(x.GetDetectorDistance_mm() == Approx(57.6));
|
||||
REQUIRE(x.GetSummation() == 36);
|
||||
REQUIRE(x.GetFPGAOutputMode() == JFJochProtoBuf::INT16);
|
||||
REQUIRE(x.GetFPGAOutputMode() == FPGAPixelOutput::Int16);
|
||||
}
|
||||
|
||||
TEST_CASE("DiffractionExperiment_LoadDatasetSettings_Invalid", "[DiffractionExperiment]") {
|
||||
@@ -782,7 +782,7 @@ TEST_CASE("DiffractionExperiment_FPGA_Summation_output","[DiffractionExperiment]
|
||||
REQUIRE_THROWS(x.Summation(-1));
|
||||
REQUIRE_THROWS(x.Summation(MAX_FPGA_SUMMATION + 1));
|
||||
|
||||
x.FPGAOutputMode(JFJochProtoBuf::AUTO);
|
||||
x.FPGAOutputMode(FPGAPixelOutput::Auto);
|
||||
REQUIRE_NOTHROW(x.Summation(1));
|
||||
REQUIRE(x.IsPixelSigned());
|
||||
REQUIRE(x.GetPixelDepth() == 2);
|
||||
@@ -793,19 +793,19 @@ TEST_CASE("DiffractionExperiment_FPGA_Summation_output","[DiffractionExperiment]
|
||||
REQUIRE(x.GetPixelDepth() == 4);
|
||||
REQUIRE(x.GetSummation() == 3);
|
||||
|
||||
x.FPGAOutputMode(JFJochProtoBuf::INT16);
|
||||
x.FPGAOutputMode(FPGAPixelOutput::Int16);
|
||||
REQUIRE(x.GetPixelDepth() == 2);
|
||||
REQUIRE(x.IsPixelSigned());
|
||||
|
||||
x.FPGAOutputMode(JFJochProtoBuf::INT32);
|
||||
x.FPGAOutputMode(FPGAPixelOutput::Int32);
|
||||
REQUIRE(x.GetPixelDepth() == 4);
|
||||
REQUIRE(x.IsPixelSigned());
|
||||
|
||||
x.FPGAOutputMode(JFJochProtoBuf::UINT16);
|
||||
x.FPGAOutputMode(FPGAPixelOutput::Uint16);
|
||||
REQUIRE(x.GetPixelDepth() == 2);
|
||||
REQUIRE(!x.IsPixelSigned());
|
||||
|
||||
x.FPGAOutputMode(JFJochProtoBuf::UINT32);
|
||||
x.FPGAOutputMode(FPGAPixelOutput::Uint32);
|
||||
REQUIRE(x.GetPixelDepth() == 4);
|
||||
REQUIRE(!x.IsPixelSigned());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user