jfjoch_viewer: Show angle as current image angle + wedge
This commit is contained in:
@@ -241,7 +241,7 @@ TEST_CASE("JFJochReader_Goniometer", "[HDF5][Full]") {
|
||||
x.BeamX_pxl(100).BeamY_pxl(200).DetectorDistance_mm(150)
|
||||
.IncidentEnergy_keV(WVL_1A_IN_KEV).PixelSigned(false).BitDepthImage(16)
|
||||
.FrameTime(std::chrono::microseconds(500), std::chrono::microseconds(10));
|
||||
x.Goniometer(GoniometerAxis("omega", 95, 0.1f, Coord(0,-1,0),{}));
|
||||
x.Goniometer(GoniometerAxis("omega", 95, 0.1f, Coord(0,-1,0),{}).ScreeningWedge(0.01f));
|
||||
|
||||
RegisterHDF5Filter();
|
||||
|
||||
@@ -275,7 +275,9 @@ TEST_CASE("JFJochReader_Goniometer", "[HDF5][Full]") {
|
||||
REQUIRE(dataset->experiment.GetGoniometer().has_value());
|
||||
|
||||
CHECK(dataset->experiment.GetGoniometer()->GetStart_deg() == 95.0);
|
||||
CHECK(fabsf(dataset->experiment.GetGoniometer()->GetIncrement_deg() - 0.1f) < 0.00001f);
|
||||
CHECK(dataset->experiment.GetGoniometer()->GetIncrement_deg() == Catch::Approx(0.1f).margin(0.00001f));
|
||||
CHECK(dataset->experiment.GetGoniometer()->GetWedge_deg() == Catch::Approx(0.01f).margin(0.00001f));
|
||||
|
||||
CHECK(dataset->experiment.GetGoniometer()->GetName() == "omega");
|
||||
CHECK(dataset->experiment.GetGoniometer()->GetAxis().x == 0);
|
||||
CHECK(dataset->experiment.GetGoniometer()->GetAxis().y == -1);
|
||||
|
||||
Reference in New Issue
Block a user