DiffractionExperiment: Remove spot finder stride
This commit is contained in:
@@ -431,34 +431,6 @@ TEST_CASE("DiffractionExperiment_SampleName", "[DiffractionExperiment]") {
|
||||
REQUIRE(x.GetSampleName() == "lyso1");
|
||||
}
|
||||
|
||||
TEST_CASE("DiffractionExperiment_SpotFinding", "[DiffractionExperiment]") {
|
||||
DiffractionExperiment x;
|
||||
std::map<size_t, uint32_t> map, map2;
|
||||
x.ImagesPerTrigger(10000).Summation(1).FrameTime(1ms);
|
||||
REQUIRE(x.GetSpotFindingBin() == 200);
|
||||
x.SpotFindingPeriod(0ms);
|
||||
REQUIRE(x.GetSpotFindingStride() == 0);
|
||||
REQUIRE(x.GetSpotFindingPeriod().count() == 0);
|
||||
|
||||
x.SpotFindingPeriod(1s);
|
||||
REQUIRE(x.GetSpotFindingPeriod() == std::chrono::milliseconds(1000));
|
||||
REQUIRE(x.GetSpotFindingStride() == 1000);
|
||||
|
||||
REQUIRE_THROWS(x.SpotFindingPeriod(-5ms));
|
||||
|
||||
x.Mode(DetectorMode::Raw);
|
||||
REQUIRE(x.GetSpotFindingStride() == 0);
|
||||
|
||||
x.Mode(DetectorMode::PedestalG0);
|
||||
REQUIRE(x.GetSpotFindingStride() == 0);
|
||||
|
||||
x.Mode(DetectorMode::PedestalG1);
|
||||
REQUIRE(x.GetSpotFindingStride() == 0);
|
||||
|
||||
x.Mode(DetectorMode::PedestalG2);
|
||||
REQUIRE(x.GetSpotFindingStride() == 0);
|
||||
}
|
||||
|
||||
TEST_CASE("DiffractionExperiment_FrameCountTime","[DiffractionExperiment]") {
|
||||
DiffractionExperiment x;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user