v1.0.0-rc.38
This commit is contained in:
@@ -598,6 +598,30 @@ TEST_CASE("DiffractionExperiment_ImageTime_EIGER","[DiffractionExperiment]") {
|
||||
REQUIRE(x.GetBitDepthReadout() == 8);
|
||||
}
|
||||
|
||||
TEST_CASE("DiffractionExperiment_ImageTime_DECTRIS","[DiffractionExperiment]") {
|
||||
DiffractionExperiment x(DetDECTRIS(123,456,"D",{}));
|
||||
x.Detector().MinFrameTime(582us);
|
||||
DatasetSettings s;
|
||||
x.FrameTime(583us);
|
||||
REQUIRE(x.GetDetectorSetup().GetReadOutTime() == 0us);
|
||||
|
||||
s.ImageTime(5ms);
|
||||
x.ImportDatasetSettings(s);
|
||||
REQUIRE(x.GetSummation() == 1);
|
||||
REQUIRE(x.GetFrameTime() == 5ms);
|
||||
REQUIRE(x.GetFrameCountTime() == 5000us);
|
||||
|
||||
s.ImageTime({});
|
||||
REQUIRE_NOTHROW(x.ImportDatasetSettings(s));
|
||||
REQUIRE(x.GetSummation() == 1);
|
||||
REQUIRE(x.GetFrameTime() == 583us);
|
||||
REQUIRE(x.GetFrameCountTime() == 583us);
|
||||
|
||||
s.ImageTime(581us);
|
||||
REQUIRE_THROWS(x.ImportDatasetSettings(s));
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("DiffractionExperiment_PulsedSource","[DiffractionExperiment]") {
|
||||
DiffractionExperiment x;
|
||||
REQUIRE(!x.IsPulsedSource()); // default must be off
|
||||
|
||||
Reference in New Issue
Block a user