Fixes after MAX IV experiment

This commit is contained in:
2024-02-05 17:18:16 +01:00
parent 91a0960303
commit babb1a5c8d
151 changed files with 4395 additions and 1477 deletions

View File

@@ -35,7 +35,7 @@ TEST_CASE("StrongPixelSet_BuildSpots","[StrongPixelSet]") {
settings.max_pix_per_spot = 200;
std::vector<DiffractionSpot> spots;
StrongPixelSet strong_pixel_set(experiment);
StrongPixelSet strong_pixel_set;
strong_pixel_set.AddStrongPixel(7,105);
strong_pixel_set.AddStrongPixel(7,106);
strong_pixel_set.AddStrongPixel(7,104);
@@ -55,6 +55,7 @@ TEST_CASE("StrongPixelSet_BuildSpots","[StrongPixelSet]") {
REQUIRE(spots[0].RawCoord().y == Approx(105.0));
}
/*
TEST_CASE("StrongPixelSet_ReadFPGAOutput_1","[StrongPixelSet]") {
DiffractionExperiment experiment(DetectorGeometry(8, 2, 8, 36, true));
experiment.BeamX_pxl(1000).BeamY_pxl(1000).DetectorDistance_mm(100).PhotonEnergy_keV(WVL_1A_IN_KEV);
@@ -127,4 +128,4 @@ TEST_CASE("StrongPixelSet_ReadFPGAOutput_2","[StrongPixelSet]") {
REQUIRE(spots[0].RawCoord().y == Approx(CONVERTED_MODULE_LINES * 3 + 36 * 2 - 1));
REQUIRE(spots[0].PixelCount() == 1);
REQUIRE(spots[0].MaxCount() == 345);
}
} */