Commit 9d109f04 authored by Hahn, Steven's avatar Hahn, Steven
Browse files

reduce scope of variable.

parent e3ecc260
......@@ -454,7 +454,6 @@ public:
}
void test_setQSampleFrameVirtualDetectorWithScatteringAngle() {
constexpr auto radius = 10.;
auto sphereInst =
ComponentCreationHelper::createTestInstrumentRectangular(5, 100);
auto extendedSpaceObj =
......@@ -468,6 +467,7 @@ public:
// extended space is a sphere, so all points should fall radius*detector
// direction away from the detector direction with extended space
auto testTheta = [this, &sphereInst](const double theta) {
constexpr auto radius = 10.;
const auto expectedDir = V3D(sin(theta), 0., cos(theta));
// test without extended detector space
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment