Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
7a2c2163
Commit
7a2c2163
authored
Jan 12, 2021
by
Mathieu Tillet
Browse files
Change expected distance in tests
parent
c73d3903
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/DataHandling/test/LoadILLSANSTest.h
View file @
7a2c2163
...
@@ -119,25 +119,18 @@ public:
...
@@ -119,25 +119,18 @@ public:
TS_ASSERT
(
!
outputWS
->
isDistribution
())
TS_ASSERT
(
!
outputWS
->
isDistribution
())
const
auto
&
instrument
=
outputWS
->
getInstrument
();
const
auto
&
instrument
=
outputWS
->
getInstrument
();
// TODO SET CORRECT COORDINATES
IComponent_const_sptr
component
=
IComponent_const_sptr
component
=
instrument
->
getComponentByName
(
"detector"
);
instrument
->
getComponentByName
(
"detector
_center
"
);
V3D
pos
=
component
->
getPos
();
V3D
pos
=
component
->
getPos
();
TS_ASSERT_DELTA
(
pos
.
X
(),
0
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
8.9274824298
,
1E-3
)
TS_ASSERT_DELTA
(
pos
.
Y
(),
0
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
20.007
,
1E-3
)
component
=
instrument
->
getComponentByName
(
"detector_left"
);
component
=
instrument
->
getComponentByName
(
"detector_left"
);
pos
=
component
->
getPos
();
pos
=
component
->
getPos
();
TS_ASSERT_DELTA
(
pos
.
X
(),
0
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
8.82248
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Y
(),
0
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
0
,
1E-5
)
component
=
instrument
->
getComponentByName
(
"detector_right"
);
component
=
instrument
->
getComponentByName
(
"detector_right"
);
pos
=
component
->
getPos
();
pos
=
component
->
getPos
();
TS_ASSERT_DELTA
(
pos
.
X
(),
0
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
8.82248
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Y
(),
0
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
0
,
1E-5
)
const
auto
&
xAxis
=
outputWS
->
x
(
0
).
rawData
();
const
auto
&
xAxis
=
outputWS
->
x
(
0
).
rawData
();
const
auto
&
spec
=
outputWS
->
y
(
3630
).
rawData
();
const
auto
&
spec
=
outputWS
->
y
(
3630
).
rawData
();
...
@@ -210,15 +203,11 @@ public:
...
@@ -210,15 +203,11 @@ public:
// TODO SET CORRECT COORDINATES
// TODO SET CORRECT COORDINATES
IComponent_const_sptr
comp
=
instrument
->
getComponentByName
(
"detector"
);
IComponent_const_sptr
comp
=
instrument
->
getComponentByName
(
"detector"
);
V3D
pos
=
comp
->
getPos
();
V3D
pos
=
comp
->
getPos
();
TS_ASSERT_DELTA
(
pos
.
X
(),
-
0.35
,
0.01
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
16.874
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Y
(),
-
0.35
,
0.01
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
8
,
0.01
)
comp
=
instrument
->
getComponentByName
(
"detector_right"
);
comp
=
instrument
->
getComponentByName
(
"detector_right"
);
pos
=
comp
->
getPos
();
pos
=
comp
->
getPos
();
TS_ASSERT_DELTA
(
pos
.
X
(),
0
,
0.01
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
16.874
,
1E-5
)
TS_ASSERT_DELTA
(
pos
.
Y
(),
-
0.35
,
0.01
)
TS_ASSERT_DELTA
(
pos
.
Z
(),
0
,
0.01
)
const
auto
&
xAxis
=
outputWS
->
x
(
0
).
rawData
();
const
auto
&
xAxis
=
outputWS
->
x
(
0
).
rawData
();
const
auto
&
spec
=
outputWS
->
y
(
1280
).
rawData
();
const
auto
&
spec
=
outputWS
->
y
(
1280
).
rawData
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment