Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DP3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
DP3
Commits
02b41b7b
Commit
02b41b7b
authored
Jun 23, 2023
by
Malcolm MacLeod
Browse files
Options
Downloads
Patches
Plain Diff
AST-1292
Adapt tPhaseShift test process methods to unique_ptr interface
parent
adbd057c
No related branches found
No related tags found
1 merge request
!1046
AST-1292 Adapt tPhaseShift test process methods to unique_ptr interface
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
steps/test/unit/tPhaseShift.cc
+83
-81
83 additions, 81 deletions
steps/test/unit/tPhaseShift.cc
with
83 additions
and
81 deletions
steps/test/unit/tPhaseShift.cc
+
83
−
81
View file @
02b41b7b
...
@@ -6,9 +6,6 @@
...
@@ -6,9 +6,6 @@
#include
"../../PhaseShift.h"
#include
"../../PhaseShift.h"
#include
<casacore/casa/Arrays/ArrayMath.h>
#include
<casacore/casa/Arrays/ArrayLogical.h>
#include
<boost/test/unit_test.hpp>
#include
<boost/test/unit_test.hpp>
#include
"tStepCommon.h"
#include
"tStepCommon.h"
...
@@ -33,7 +30,8 @@ BOOST_AUTO_TEST_SUITE(phaseshift)
...
@@ -33,7 +30,8 @@ BOOST_AUTO_TEST_SUITE(phaseshift)
// It can be used with different nr of times, channels, etc.
// It can be used with different nr of times, channels, etc.
class
TestInput
:
public
dp3
::
steps
::
MockInput
{
class
TestInput
:
public
dp3
::
steps
::
MockInput
{
public:
public:
TestInput
(
int
ntime
,
int
nbl
,
int
nchan
,
int
ncorr
,
bool
flag
)
TestInput
(
std
::
size_t
ntime
,
std
::
size_t
nbl
,
std
::
size_t
nchan
,
std
::
size_t
ncorr
,
bool
flag
)
:
itsCount
(
0
),
:
itsCount
(
0
),
itsNTime
(
ntime
),
itsNTime
(
ntime
),
itsNBl
(
nbl
),
itsNBl
(
nbl
),
...
@@ -48,20 +46,20 @@ class TestInput : public dp3::steps::MockInput {
...
@@ -48,20 +46,20 @@ class TestInput : public dp3::steps::MockInput {
info
().
setArrayInformation
(
casacore
::
MPosition
(),
phaseCenter
,
phaseCenter
,
info
().
setArrayInformation
(
casacore
::
MPosition
(),
phaseCenter
,
phaseCenter
,
phaseCenter
);
phaseCenter
);
// Define the frequencies.
// Define the frequencies.
std
::
vector
<
double
>
chanWidth
(
nchan
,
100000.
);
std
::
vector
<
double
>
chanWidth
(
nchan
,
100000.
0
);
std
::
vector
<
double
>
chanFreqs
;
std
::
vector
<
double
>
chanFreqs
;
for
(
in
t
i
=
0
;
i
<
nchan
;
i
++
)
{
for
(
std
::
size_
t
i
=
0
;
i
<
nchan
;
i
++
)
{
chanFreqs
.
push_back
(
1050000.
+
i
*
100000.
);
chanFreqs
.
push_back
(
1050000.
0
+
i
*
100000.
0
);
}
}
info
().
setChannels
(
std
::
move
(
chanFreqs
),
std
::
move
(
chanWidth
));
info
().
setChannels
(
std
::
move
(
chanFreqs
),
std
::
move
(
chanWidth
));
// Fill the baseline stations.
// Fill the baseline stations.
// Determine nr of stations using: na*(na+1)/2 = nbl
// Determine nr of stations using: na*(na+1)/2 = nbl
// If many baselines, divide into groups of 6 to test if
// If many baselines, divide into groups of 6 to test if
// PhaseShift disentangles it correctly.
// PhaseShift disentangles it correctly.
int
nant
=
in
t
(
-
0.5
+
sqrt
(
0.25
+
2
*
nbl
));
std
::
size_t
nant
=
std
::
size_
t
(
-
0.5
+
sqrt
(
0.25
+
2
*
nbl
));
if
(
nant
*
(
nant
+
1
)
/
2
<
nbl
)
++
nant
;
if
(
nant
*
(
nant
+
1
)
/
2
<
nbl
)
++
nant
;
int
grpszant
=
3
;
int
grpszant
=
3
;
in
t
grpszbl
=
grpszant
*
(
grpszant
+
1
)
/
2
;
std
::
size_
t
grpszbl
=
grpszant
*
(
grpszant
+
1
)
/
2
;
if
(
nbl
>
grpszbl
)
{
if
(
nbl
>
grpszbl
)
{
nant
=
grpszant
*
(
nbl
+
grpszbl
-
1
)
/
grpszbl
;
nant
=
grpszant
*
(
nbl
+
grpszbl
-
1
)
/
grpszbl
;
}
else
{
}
else
{
...
@@ -73,7 +71,7 @@ class TestInput : public dp3::steps::MockInput {
...
@@ -73,7 +71,7 @@ class TestInput : public dp3::steps::MockInput {
int
st1
=
0
;
int
st1
=
0
;
int
st2
=
0
;
int
st2
=
0
;
int
lastant
=
grpszant
;
int
lastant
=
grpszant
;
for
(
in
t
i
=
0
;
i
<
nbl
;
++
i
)
{
for
(
std
::
size_
t
i
=
0
;
i
<
nbl
;
++
i
)
{
ant1
[
i
]
=
st1
;
ant1
[
i
]
=
st1
;
ant2
[
i
]
=
st2
;
ant2
[
i
]
=
st2
;
if
(
i
%
grpszbl
==
grpszbl
-
1
)
{
if
(
i
%
grpszbl
==
grpszbl
-
1
)
{
...
@@ -88,51 +86,54 @@ class TestInput : public dp3::steps::MockInput {
...
@@ -88,51 +86,54 @@ class TestInput : public dp3::steps::MockInput {
}
}
vector
<
string
>
antNames
(
nant
);
vector
<
string
>
antNames
(
nant
);
vector
<
casacore
::
MPosition
>
antPos
(
nant
);
vector
<
casacore
::
MPosition
>
antPos
(
nant
);
vector
<
double
>
antDiam
(
nant
,
70.
);
vector
<
double
>
antDiam
(
nant
,
70.
0
);
info
().
setAntennas
(
antNames
,
antDiam
,
antPos
,
ant1
,
ant2
);
info
().
setAntennas
(
antNames
,
antDiam
,
antPos
,
ant1
,
ant2
);
itsStatUVW
.
resize
(
3
,
nant
);
std
::
array
<
size_t
,
2
>
stat_uvw_shape
{
itsNBl
,
3
};
for
(
int
i
=
0
;
i
<
nant
;
++
i
)
{
itsStatUVW
.
resize
(
stat_uvw_shape
);
itsStatUVW
(
0
,
i
)
=
0.01
+
i
*
0.02
;
for
(
std
::
size_t
i
=
0
;
i
<
nant
;
++
i
)
{
itsStatUVW
(
1
,
i
)
=
0.05
+
i
*
0.03
;
itsStatUVW
(
i
,
0
)
=
0.01
+
i
*
0.02
;
itsStatUVW
(
2
,
i
)
=
0.015
+
i
*
0.025
;
itsStatUVW
(
i
,
1
)
=
0.05
+
i
*
0.03
;
itsStatUVW
(
i
,
2
)
=
0.015
+
i
*
0.025
;
}
}
}
}
void
fillUVW
(
casacore
::
Matrix
<
double
>&
uvw
,
int
count
)
{
void
fillUVW
(
xt
::
xtensor
<
double
,
2
>&
uvw
,
int
count
)
{
for
(
in
t
i
=
0
;
i
<
itsNBl
;
++
i
)
{
for
(
std
::
size_
t
i
=
0
;
i
<
itsNBl
;
++
i
)
{
uvw
(
0
,
i
)
=
(
itsStatUVW
(
0
,
getInfo
().
getAnt2
()[
i
])
+
count
*
0.002
-
uvw
(
i
,
0
)
=
(
itsStatUVW
(
getInfo
().
getAnt2
()[
i
]
,
0
)
+
count
*
0.002
-
(
itsStatUVW
(
0
,
getInfo
().
getAnt1
()[
i
])
+
count
*
0.002
));
(
itsStatUVW
(
getInfo
().
getAnt1
()[
i
]
,
0
)
+
count
*
0.002
));
uvw
(
1
,
i
)
=
(
itsStatUVW
(
1
,
getInfo
().
getAnt2
()[
i
])
+
count
*
0.004
-
uvw
(
i
,
1
)
=
(
itsStatUVW
(
getInfo
().
getAnt2
()[
i
]
,
1
)
+
count
*
0.004
-
(
itsStatUVW
(
1
,
getInfo
().
getAnt1
()[
i
])
+
count
*
0.004
));
(
itsStatUVW
(
getInfo
().
getAnt1
()[
i
]
,
1
)
+
count
*
0.004
));
uvw
(
2
,
i
)
=
(
itsStatUVW
(
2
,
getInfo
().
getAnt2
()[
i
])
+
count
*
0.006
-
uvw
(
i
,
2
)
=
(
itsStatUVW
(
getInfo
().
getAnt2
()[
i
]
,
2
)
+
count
*
0.006
-
(
itsStatUVW
(
2
,
getInfo
().
getAnt1
()[
i
])
+
count
*
0.006
));
(
itsStatUVW
(
getInfo
().
getAnt1
()[
i
]
,
2
)
+
count
*
0.006
));
}
}
}
}
private
:
private
:
bool
process
(
const
DPBuffer
&
)
override
{
bool
process
(
std
::
unique_ptr
<
DPBuffer
>
)
override
{
// Stop when all times are done.
// Stop when all times are done.
if
(
itsCount
==
itsNTime
)
{
if
(
itsCount
==
itsNTime
)
{
return
false
;
return
false
;
}
}
casacore
::
Cube
<
casacore
::
Complex
>
data
(
itsNCorr
,
itsNChan
,
itsNBl
);
std
::
array
<
size_t
,
3
>
data_shape
{
itsNBl
,
itsNChan
,
itsNCorr
};
for
(
int
i
=
0
;
i
<
int
(
data
.
size
());
++
i
)
{
auto
buffer
=
std
::
make_unique
<
DPBuffer
>
();
data
.
data
()[
i
]
=
buffer
->
setTime
(
itsCount
*
5
+
2
);
// same interval as in updateAveragInfo
casacore
::
Complex
(
i
+
itsCount
*
10
,
i
-
1000
+
itsCount
*
6
);
buffer
->
ResizeData
(
data_shape
);
auto
&
data
=
buffer
->
GetData
();
for
(
std
::
size_t
i
=
0
;
i
<
data
.
size
();
++
i
)
{
data
.
data
()[
i
]
=
std
::
complex
<
float
>
(
i
+
itsCount
*
10
,
static_cast
<
int
>
(
i
)
-
1000
+
static_cast
<
int
>
(
itsCount
)
*
6
);
}
}
DPBuffer
buf
;
buffer
->
ResizeWeights
(
data_shape
);
buf
.
setTime
(
itsCount
*
5
+
2
);
// same interval as in updateAveragInfo
buffer
->
GetWeights
().
fill
(
1.0
);
buf
.
setData
(
data
);
buffer
->
ResizeFlags
(
data_shape
);
casacore
::
Cube
<
float
>
weights
(
data
.
shape
());
buffer
->
GetFlags
().
fill
(
itsFlag
);
weights
=
1.
;
std
::
array
<
size_t
,
2
>
uvw_shape
{
itsNBl
,
3
};
buf
.
setWeights
(
weights
);
xt
::
xtensor
<
double
,
2
>
uvw
(
uvw_shape
);
casacore
::
Cube
<
bool
>
flags
(
data
.
shape
());
flags
=
itsFlag
;
buf
.
setFlags
(
flags
);
casacore
::
Matrix
<
double
>
uvw
(
3
,
itsNBl
);
fillUVW
(
uvw
,
itsCount
);
fillUVW
(
uvw
,
itsCount
);
buf
.
setUVW
(
uvw
);
buffer
->
ResizeUvw
(
itsNBl
);
getNextStep
()
->
process
(
buf
);
buffer
->
GetUvw
()
=
uvw
;
getNextStep
()
->
process
(
std
::
move
(
buffer
));
++
itsCount
;
++
itsCount
;
return
true
;
return
true
;
}
}
...
@@ -142,16 +143,16 @@ class TestInput : public dp3::steps::MockInput {
...
@@ -142,16 +143,16 @@ class TestInput : public dp3::steps::MockInput {
// Do nothing / keep the info set in the constructor.
// Do nothing / keep the info set in the constructor.
}
}
in
t
itsCount
,
itsNTime
,
itsNBl
,
itsNChan
,
itsNCorr
;
std
::
size_
t
itsCount
,
itsNTime
,
itsNBl
,
itsNChan
,
itsNCorr
;
bool
itsFlag
;
bool
itsFlag
;
casacore
::
Matrix
<
double
>
itsStatUVW
;
xt
::
xtensor
<
double
,
2
>
itsStatUVW
;
};
};
// Class to check result of null phase-shifted TestInput.
// Class to check result of null phase-shifted TestInput.
class
TestOutput
:
public
dp3
::
steps
::
test
::
ThrowStep
{
class
TestOutput
:
public
dp3
::
steps
::
test
::
ThrowStep
{
public:
public:
TestOutput
(
TestInput
&
input
,
int
ntime
,
int
nbl
,
int
nchan
,
int
ncorr
,
TestOutput
(
TestInput
&
input
,
std
::
size_t
ntime
,
std
::
size_t
nbl
,
bool
flag
)
std
::
size_t
nchan
,
std
::
size_t
ncorr
,
bool
flag
)
:
itsInput
(
&
input
),
:
itsInput
(
&
input
),
itsCount
(
0
),
itsCount
(
0
),
itsNTime
(
ntime
),
itsNTime
(
ntime
),
...
@@ -161,24 +162,26 @@ class TestOutput : public dp3::steps::test::ThrowStep {
...
@@ -161,24 +162,26 @@ class TestOutput : public dp3::steps::test::ThrowStep {
itsFlag
(
flag
)
{}
itsFlag
(
flag
)
{}
private
:
private
:
bool
process
(
const
DPBuffer
&
buf
)
override
{
bool
process
(
std
::
unique_ptr
<
DPBuffer
>
buf
)
override
{
// Stop when all times are done.
// Stop when all times are done.
if
(
itsCount
==
itsNTime
)
{
if
(
itsCount
==
itsNTime
)
{
return
false
;
return
false
;
}
}
casacore
::
Cube
<
casacore
::
Complex
>
result
(
itsNCorr
,
itsNChan
,
itsNBl
);
std
::
array
<
size_t
,
3
>
data_shape
{
itsNBl
,
itsNChan
,
itsNCorr
};
for
(
int
i
=
0
;
i
<
int
(
result
.
size
());
++
i
)
{
xt
::
xtensor
<
std
::
complex
<
float
>
,
3
>
expected_result
(
data_shape
);
result
.
data
()[
i
]
=
for
(
std
::
size_t
i
=
0
;
i
<
expected_result
.
size
();
++
i
)
{
casacore
::
Complex
(
i
+
itsCount
*
10
,
i
-
1000
+
itsCount
*
6
);
expected_result
.
data
()[
i
]
=
std
::
complex
<
float
>
(
i
+
itsCount
*
10
,
static_cast
<
int
>
(
i
)
-
1000
+
static_cast
<
int
>
(
itsCount
)
*
6
);
}
}
casacore
::
Matrix
<
double
>
uvw
(
3
,
itsNBl
);
std
::
array
<
size_t
,
2
>
uvw_shape
{
itsNBl
,
3
};
xt
::
xtensor
<
double
,
2
>
uvw
(
uvw_shape
);
itsInput
->
fillUVW
(
uvw
,
itsCount
);
itsInput
->
fillUVW
(
uvw
,
itsCount
);
// Check the result.
// Check the expected result against the actual result.
BOOST_CHECK
(
allNear
(
real
(
buf
.
GetCasacoreData
()),
real
(
result
),
1e-7
));
BOOST_CHECK
(
xt
::
allclose
(
buf
->
GetData
(),
expected_result
,
1.0e-7
));
BOOST_CHECK
(
allNear
(
imag
(
buf
.
GetCasacoreData
()),
imag
(
result
),
1e-7
));
BOOST_CHECK
(
xt
::
all
(
xt
::
equal
(
buf
->
GetFlags
(),
itsFlag
)));
BOOST_CHECK
(
allEQ
(
buf
.
GetCasacoreFlags
(),
itsFlag
));
BOOST_CHECK_CLOSE_FRACTION
(
buf
->
getTime
(),
2.0
+
5
*
itsCount
,
1.0e-6
);
BOOST_CHECK_CLOSE_FRACTION
(
buf
.
getTime
(),
2.
+
5
*
itsCount
,
1e-6
);
BOOST_CHECK
(
xt
::
allclose
(
buf
->
GetUvw
(),
uvw
,
1.0e-7
));
BOOST_CHECK
(
allNear
(
buf
.
GetCasacoreUvw
(),
uvw
,
1e-7
));
++
itsCount
;
++
itsCount
;
return
true
;
return
true
;
}
}
...
@@ -187,21 +190,20 @@ class TestOutput : public dp3::steps::test::ThrowStep {
...
@@ -187,21 +190,20 @@ class TestOutput : public dp3::steps::test::ThrowStep {
void
updateInfo
(
const
DPInfo
&
infoIn
)
override
{
void
updateInfo
(
const
DPInfo
&
infoIn
)
override
{
info
()
=
infoIn
;
info
()
=
infoIn
;
casacore
::
MVDirection
dir
=
infoIn
.
phaseCenter
().
getValue
();
casacore
::
MVDirection
dir
=
infoIn
.
phaseCenter
().
getValue
();
BOOST_CHECK_CLOSE_FRACTION
(
dir
.
getLong
(
"deg"
).
getValue
(),
45.
,
1e-6
);
BOOST_CHECK_CLOSE_FRACTION
(
dir
.
getLong
(
"deg"
).
getValue
(),
45.
0
,
1
.0
e-6
);
BOOST_CHECK_CLOSE_FRACTION
(
dir
.
getLat
(
"deg"
).
getValue
(),
30.
,
1e-6
);
BOOST_CHECK_CLOSE_FRACTION
(
dir
.
getLat
(
"deg"
).
getValue
(),
30.
0
,
1
.0
e-6
);
}
}
TestInput
*
itsInput
;
TestInput
*
itsInput
;
int
itsCount
;
std
::
size_t
itsCount
,
itsNTime
,
itsNBl
,
itsNChan
,
itsNCorr
;
int
itsNTime
,
itsNBl
,
itsNChan
,
itsNCorr
;
bool
itsFlag
;
bool
itsFlag
;
};
};
// Class to check result of null phase-shifted TestInput.
// Class to check result of null phase-shifted TestInput.
class
TestOutput1
:
public
dp3
::
steps
::
test
::
ThrowStep
{
class
TestOutput1
:
public
dp3
::
steps
::
test
::
ThrowStep
{
public:
public:
TestOutput1
(
TestInput
&
input
,
int
ntime
,
int
nbl
,
int
nchan
,
int
ncorr
,
TestOutput1
(
TestInput
&
input
,
std
::
size_t
ntime
,
std
::
size_t
nbl
,
bool
flag
)
std
::
size_t
nchan
,
std
::
size_t
ncorr
,
bool
flag
)
:
itsInput
(
&
input
),
:
itsInput
(
&
input
),
itsCount
(
0
),
itsCount
(
0
),
itsNTime
(
ntime
),
itsNTime
(
ntime
),
...
@@ -211,26 +213,27 @@ class TestOutput1 : public dp3::steps::test::ThrowStep {
...
@@ -211,26 +213,27 @@ class TestOutput1 : public dp3::steps::test::ThrowStep {
itsFlag
(
flag
)
{}
itsFlag
(
flag
)
{}
private
:
private
:
bool
process
(
const
DPBuffer
&
buf
)
override
{
bool
process
(
std
::
unique_ptr
<
DPBuffer
>
buf
)
override
{
// Stop when all times are done.
// Stop when all times are done.
if
(
itsCount
==
itsNTime
)
{
if
(
itsCount
==
itsNTime
)
{
return
false
;
return
false
;
}
}
casacore
::
Cube
<
casacore
::
Complex
>
result
(
itsNCorr
,
itsNChan
,
itsNBl
);
std
::
array
<
size_t
,
3
>
data_shape
{
itsNBl
,
itsNChan
,
itsNCorr
};
for
(
int
i
=
0
;
i
<
int
(
result
.
size
());
++
i
)
{
xt
::
xtensor
<
std
::
complex
<
float
>
,
3
>
expected_result
(
data_shape
);
result
.
data
()[
i
]
=
for
(
std
::
size_t
i
=
0
;
i
<
expected_result
.
size
();
++
i
)
{
casacore
::
Complex
(
i
+
itsCount
*
10
,
i
-
1000
+
itsCount
*
6
);
expected_result
.
data
()[
i
]
=
std
::
complex
<
float
>
(
i
+
itsCount
*
10
,
static_cast
<
int
>
(
i
)
-
1000
+
static_cast
<
int
>
(
itsCount
)
*
6
);
}
}
casacore
::
Matrix
<
double
>
uvw
(
3
,
itsNBl
);
std
::
array
<
size_t
,
2
>
uvw_shape
{
itsNBl
,
3
};
xt
::
xtensor
<
double
,
2
>
uvw
(
uvw_shape
);
itsInput
->
fillUVW
(
uvw
,
itsCount
);
itsInput
->
fillUVW
(
uvw
,
itsCount
);
// Check the result.
// Check the expected result against the actual result.
BOOST_CHECK
(
!
allNear
(
real
(
buf
.
GetCasacoreData
()),
real
(
result
),
1e-5
));
BOOST_CHECK
(
!
xt
::
allclose
(
buf
->
GetData
(),
expected_result
));
BOOST_CHECK
(
!
allEQ
(
real
(
buf
.
GetCasacoreData
()),
real
(
result
)));
BOOST_CHECK
(
!
xt
::
all
(
xt
::
equal
(
buf
->
GetData
(),
expected_result
)));
BOOST_CHECK
(
!
allNear
(
imag
(
buf
.
GetCasacoreData
()),
imag
(
result
),
1e-5
));
BOOST_CHECK
(
xt
::
all
(
xt
::
equal
(
buf
->
GetFlags
(),
itsFlag
)));
BOOST_CHECK
(
!
allEQ
(
imag
(
buf
.
GetCasacoreData
()),
imag
(
result
)));
BOOST_CHECK_CLOSE_FRACTION
(
buf
->
getTime
(),
2.
+
5
*
itsCount
,
1.0e-5
);
BOOST_CHECK
(
allEQ
(
buf
.
GetCasacoreFlags
(),
itsFlag
));
BOOST_CHECK
(
!
xt
::
allclose
(
buf
->
GetUvw
(),
uvw
));
BOOST_CHECK_CLOSE_FRACTION
(
buf
.
getTime
(),
2.
+
5
*
itsCount
,
1e-5
);
BOOST_CHECK
(
!
allNear
(
buf
.
GetCasacoreUvw
(),
uvw
,
1e-5
));
++
itsCount
;
++
itsCount
;
return
true
;
return
true
;
}
}
...
@@ -239,13 +242,12 @@ class TestOutput1 : public dp3::steps::test::ThrowStep {
...
@@ -239,13 +242,12 @@ class TestOutput1 : public dp3::steps::test::ThrowStep {
void
updateInfo
(
const
DPInfo
&
infoIn
)
override
{
void
updateInfo
(
const
DPInfo
&
infoIn
)
override
{
info
()
=
infoIn
;
info
()
=
infoIn
;
casacore
::
MVDirection
dir
=
infoIn
.
phaseCenter
().
getValue
();
casacore
::
MVDirection
dir
=
infoIn
.
phaseCenter
().
getValue
();
BOOST_CHECK_CLOSE_FRACTION
(
dir
.
getLong
(
"deg"
).
getValue
(),
50.
,
1e-5
);
BOOST_CHECK_CLOSE_FRACTION
(
dir
.
getLong
(
"deg"
).
getValue
(),
50.
0
,
1
.0
e-5
);
BOOST_CHECK_CLOSE_FRACTION
(
dir
.
getLat
(
"deg"
).
getValue
(),
35.
,
1e-5
);
BOOST_CHECK_CLOSE_FRACTION
(
dir
.
getLat
(
"deg"
).
getValue
(),
35.
0
,
1
.0
e-5
);
}
}
TestInput
*
itsInput
;
TestInput
*
itsInput
;
int
itsCount
;
std
::
size_t
itsCount
,
itsNTime
,
itsNBl
,
itsNChan
,
itsNCorr
;
int
itsNTime
,
itsNBl
,
itsNChan
,
itsNCorr
;
bool
itsFlag
;
bool
itsFlag
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment