File writer and spot finding improvements

This commit is contained in:
2024-04-08 11:18:50 +02:00
parent 15d99c6162
commit c6d2b5eedf
72 changed files with 690 additions and 893 deletions

View File

@@ -18,12 +18,6 @@ TEST_CASE("DiffractionSpot_AddOperator","[StrongPixelSet]") {
REQUIRE(spot1.PixelCount() == 2);
}
TEST_CASE("StrongPixelSet_coord2uint64_t","[StrongPixelSet]") {
uint32_t val = strong_pixel_coord(15,6667);
REQUIRE(col_from_strong_pixel(val) == 15);
REQUIRE(line_from_strong_pixel(val) == 6667);
}
TEST_CASE("StrongPixelSet_BuildSpots","[StrongPixelSet]") {
DiffractionExperiment experiment(DetectorGeometry(1,1,0,0,false));
experiment.Mode(DetectorMode::Raw);
@@ -46,7 +40,6 @@ TEST_CASE("StrongPixelSet_BuildSpots","[StrongPixelSet]") {
strong_pixel_set.AddStrongPixel(8,105);
strong_pixel_set.AddStrongPixel(8,104);
strong_pixel_set.FindSpots(experiment, settings, spots, 0);
REQUIRE(strong_pixel_set.Count() == 0);
REQUIRE(spots.size() == 1);
REQUIRE(spots[0].Count() == 9.0f);