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

reduce scope of variable.

parent e3ecc260
...@@ -454,7 +454,6 @@ public: ...@@ -454,7 +454,6 @@ public:
} }
void test_setQSampleFrameVirtualDetectorWithScatteringAngle() { void test_setQSampleFrameVirtualDetectorWithScatteringAngle() {
constexpr auto radius = 10.;
auto sphereInst = auto sphereInst =
ComponentCreationHelper::createTestInstrumentRectangular(5, 100); ComponentCreationHelper::createTestInstrumentRectangular(5, 100);
auto extendedSpaceObj = auto extendedSpaceObj =
...@@ -468,6 +467,7 @@ public: ...@@ -468,6 +467,7 @@ public:
// extended space is a sphere, so all points should fall radius*detector // extended space is a sphere, so all points should fall radius*detector
// direction away from the detector direction with extended space // direction away from the detector direction with extended space
auto testTheta = [this, &sphereInst](const double theta) { auto testTheta = [this, &sphereInst](const double theta) {
constexpr auto radius = 10.;
const auto expectedDir = V3D(sin(theta), 0., cos(theta)); const auto expectedDir = V3D(sin(theta), 0., cos(theta));
// test without extended detector space // 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