RadialIntegrationProfile: Minor change to the interface

This commit is contained in:
2023-05-09 14:47:23 +02:00
parent a867b1c596
commit 70fb7b96f8
5 changed files with 26 additions and 24 deletions

View File

@@ -148,15 +148,15 @@ TEST_CASE("HDF5MasterFile_RadInt", "[HDF5][Full]") {
x.FilePrefix("test01_rad_int").ImagesPerTrigger(950);
RadialIntegrationMapping mapping(x);
RadialIntegrationProfile profile(mapping);
RadialIntegrationProfile profile(mapping, x);
StartMessage start_message;
x.FillMessage(start_message);
start_message.rad_int_bin_to_q = mapping.GetBinToQ();
EndMessage end_message;
end_message.number_of_images = x.GetImageNum();
end_message.rad_int_result["avg1"] = profile.GetResult(x);
end_message.rad_int_result["avg2"] = profile.GetResult(x);
end_message.rad_int_result["avg1"] = profile.GetResult();
end_message.rad_int_result["avg2"] = profile.GetResult();
REQUIRE_NOTHROW(HDF5Metadata::NXmx(start_message, end_message));
}
@@ -231,7 +231,7 @@ TEST_CASE("HDF5Writer_Rad_Int_Profile", "[HDF5][Full]") {
x.QSpacingForRadialInt_recipA(0.1).LowQForRadialInt_recipA(0.1).HighQForRadialInt_recipA(4);
RadialIntegrationMapping mapping(x);
RadialIntegrationProfile profile(mapping);
RadialIntegrationProfile profile(mapping, x);
std::vector<float> rad_int_profile(mapping.GetBinNumber(), 4.0);
std::vector<float> rad_int_avg(mapping.GetBinNumber(), 0.33);