Skip to content
GitLab
Explore
Sign in
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
cbc6a8f8
Commit
cbc6a8f8
authored
5 years ago
by
Tammo Jan Dijkema
Browse files
Options
Downloads
Patches
Plain Diff
Enable tPredict
parent
26d58853
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
DPPP/test/CMakeLists.txt
+1
-1
1 addition, 1 deletion
DPPP/test/CMakeLists.txt
DPPP/test/tPredict.run
+8
-5
8 additions, 5 deletions
DPPP/test/tPredict.run
with
9 additions
and
6 deletions
DPPP/test/CMakeLists.txt
+
1
−
1
View file @
cbc6a8f8
...
@@ -31,7 +31,7 @@ configure_file(findenv.run_tmpl findenv.run_script)
...
@@ -31,7 +31,7 @@ configure_file(findenv.run_tmpl findenv.run_script)
#add_test(tparse tparse.cc)
#add_test(tparse tparse.cc)
#add_test(tBaselineSelection tBaselineSelection.cc)
#add_test(tBaselineSelection tBaselineSelection.cc)
#add_test(tDemix)
#add_test(tDemix)
#
add_test(tPredict)
add_test
(
tPredict
${
CMAKE_CURRENT_SOURCE_DIR
}
/tPredict.sh
)
add_test
(
tApplyBeam
${
CMAKE_CURRENT_SOURCE_DIR
}
/tApplyBeam.sh
)
add_test
(
tApplyBeam
${
CMAKE_CURRENT_SOURCE_DIR
}
/tApplyBeam.sh
)
add_test
(
tGainCal
${
CMAKE_CURRENT_SOURCE_DIR
}
/tGainCal.sh
)
add_test
(
tGainCal
${
CMAKE_CURRENT_SOURCE_DIR
}
/tGainCal.sh
)
#add_test(tH5Parm tH5Parm)
#add_test(tH5Parm tH5Parm)
...
...
This diff is collapsed.
Click to expand it.
DPPP/test/tPredict.run
+
8
−
5
View file @
cbc6a8f8
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
# Get the taql executable and srcdir (script created by cmake's CONFIGURE_FILE).
# Get the taql executable and srcdir (script created by cmake's CONFIGURE_FILE).
source
findenv.run_script
source
findenv.run_script
echo
"srcdirx=
$rt_srcdir
"
echo
"srcdirx=
$rt_srcdir
"
pwd
=
`
pwd
`
dpppexe
=
`
readlink
-f
$pwd
/../DPPP
`
echo
dpppexe is
$dpppexe
# Set srcdir if not defined (in case run by hand).
# Set srcdir if not defined (in case run by hand).
if
test
"
$srcdir
"
=
""
;
then
if
test
"
$srcdir
"
=
""
;
then
...
@@ -24,7 +27,7 @@ tar zxf ${srcdir}/tPredict.tab.tgz
...
@@ -24,7 +27,7 @@ tar zxf ${srcdir}/tPredict.tab.tgz
echo
" select result of 0 rows"
>
taql.ref
echo
" select result of 0 rows"
>
taql.ref
echo
;
echo
"Test with beam, subtract"
;
echo
echo
;
echo
"Test with beam, subtract"
;
echo
cmd
=
'NDPPP
msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=true predict.operation=subtract
'
cmd
=
"
$dpppexe
msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=true predict.operation=subtract
"
echo
$cmd
echo
$cmd
$cmd
$cmd
# Compare the MODEL_DATA column of the output MS with the original data minus the BBS reference output.
# Compare the MODEL_DATA column of the output MS with the original data minus the BBS reference output.
...
@@ -34,7 +37,7 @@ $taqlexe $taqlcmd > taql.out
...
@@ -34,7 +37,7 @@ $taqlexe $taqlcmd > taql.out
diff taql.out taql.ref
||
exit
1
diff taql.out taql.ref
||
exit
1
echo
;
echo
"Test without beam, add"
;
echo
echo
;
echo
"Test without beam, add"
;
echo
cmd
=
'NDPPP
msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=false predict.operation=add
'
cmd
=
"
$dpppexe
msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=false predict.operation=add
"
echo
$cmd
echo
$cmd
$cmd
$cmd
# Compare the MODEL_DATA column of the output MS with the original data plus the BBS reference output.
# Compare the MODEL_DATA column of the output MS with the original data plus the BBS reference output.
...
@@ -49,7 +52,7 @@ open table="tPredict.parmdb"
...
@@ -49,7 +52,7 @@ open table="tPredict.parmdb"
adddef Gain:0:0:Real values=3.
adddef Gain:0:0:Real values=3.
adddef Gain:1:1:Real values=3.
adddef Gain:1:1:Real values=3.
EOL
EOL
cmd
=
'NDPPP
msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.applycal.parmdb=tPredict.parmdb predict.operation=subtract
'
cmd
=
"
$dpppexe
msin=tNDPPP-generic.MS msout=. msout.datacolumn=MODEL_DATA steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.applycal.parmdb=tPredict.parmdb predict.operation=subtract
"
echo
$cmd
echo
$cmd
$cmd
$cmd
# Compare the MODEL_DATA column of the output MS with the original data minus the BBS reference output.
# Compare the MODEL_DATA column of the output MS with the original data minus the BBS reference output.
...
@@ -59,7 +62,7 @@ $taqlexe $taqlcmd > taql.out
...
@@ -59,7 +62,7 @@ $taqlexe $taqlcmd > taql.out
diff taql.out taql.ref
||
exit
1
diff taql.out taql.ref
||
exit
1
echo
;
echo
"Test without beam"
;
echo
echo
;
echo
"Test without beam"
;
echo
cmd
=
'NDPPP
msin=tNDPPP-generic.MS msout=. steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky
'
cmd
=
"
$dpppexe
msin=tNDPPP-generic.MS msout=. steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky
"
echo
$cmd
echo
$cmd
$cmd
$cmd
# Compare the DATA column of the output MS with the BBS reference output.
# Compare the DATA column of the output MS with the BBS reference output.
...
@@ -69,7 +72,7 @@ $taqlexe $taqlcmd > taql.out
...
@@ -69,7 +72,7 @@ $taqlexe $taqlcmd > taql.out
diff taql.out taql.ref
||
exit
1
diff taql.out taql.ref
||
exit
1
echo
;
echo
"Test with beam"
;
echo
echo
;
echo
"Test with beam"
;
echo
cmd
=
'
NDPPP
msin=tNDPPP-generic.MS msout=. steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=true'
cmd
=
'
$dpppexe
msin=tNDPPP-generic.MS msout=. steps=[predict] predict.sourcedb=tNDPPP-generic.MS/sky predict.usebeammodel=true'
echo
$cmd
echo
$cmd
$cmd
$cmd
# Compare the DATA column of the output MS with the BBS reference output.
# Compare the DATA column of the output MS with the BBS reference output.
...
...
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