DiffractionExperiment: Fix loading 2x2 binning/solid angle/apply pixel mask
This commit is contained in:
@@ -746,14 +746,24 @@ TEST_CASE("DiffractionExperiment_LoadDatasetSettings", "[DiffractionExperiment]"
|
||||
settings.set_data_file_count(5);
|
||||
settings.set_space_group_number(45);
|
||||
settings.set_sample_name("lyso1");
|
||||
settings.set_apply_pixel_mask(true);
|
||||
settings.set_binning2x2(true);
|
||||
settings.set_rad_int_solid_angle_corr(true);
|
||||
|
||||
REQUIRE_NOTHROW(x.LoadDatasetSettings(settings));
|
||||
|
||||
REQUIRE(x.GetScatteringVector().x == 0);
|
||||
REQUIRE(x.GetImageNumPerTrigger() == 234);
|
||||
REQUIRE(x.GetBeamY_pxl() == Approx(123.4));
|
||||
REQUIRE(x.GetBeamX_pxl() == Approx(23.4/2));
|
||||
REQUIRE(x.GetBeamY_pxl() == Approx(123.4/2));
|
||||
REQUIRE(x.GetSpaceGroupNumber() == 45);
|
||||
REQUIRE(x.GetCompressionAlgorithm() == JFJochProtoBuf::BSHUF_LZ4);
|
||||
REQUIRE(x.GetSampleName() == "lyso1");
|
||||
REQUIRE(x.GetDataFileCount() == 5);
|
||||
REQUIRE(x.GetDetectorDistance_mm() == Approx(57.6));
|
||||
REQUIRE(x.GetApplyPixelMaskInFPGA());
|
||||
REQUIRE(x.GetBinning2x2());
|
||||
REQUIRE(x.GetSolidAngleCorrection());
|
||||
}
|
||||
|
||||
TEST_CASE("DiffractionExperiment_ImageTimeUs", "[DiffractionExperiment]") {
|
||||
|
||||
Reference in New Issue
Block a user