Skip to content
Snippets Groups Projects
Commit 3c7a8ba3 authored by Ger van Diepen's avatar Ger van Diepen
Browse files

bug 1656:

Added synonyms msin.name and msout.name (for SAS/MAC)
parent 5224753b
No related branches found
No related tags found
No related merge requests found
...@@ -138,8 +138,17 @@ namespace LOFAR { ...@@ -138,8 +138,17 @@ namespace LOFAR {
DPStep::ShPtr firstStep; DPStep::ShPtr firstStep;
DPStep::ShPtr lastStep; DPStep::ShPtr lastStep;
// Get input and output MS name. // Get input and output MS name.
string inName = parset.getString ("msin"); // Those parameters were always called msin and msout.
string outName = parset.getString ("msout"); // However, SAS/MAC cannot handle a parameter and a group with the same
// name, hence it uses msin.name and msout.name.
string inName = parset.getString ("msin.name", "");
if (inName.empty()) {
inName = parset.getString ("msin");
}
string outName = parset.getString ("msout.name", "");
if (outName.empty()) {
outName = parset.getString ("msout");
}
// Get the steps. // Get the steps.
vector<string> steps = parset.getStringVector ("steps"); vector<string> steps = parset.getStringVector ("steps");
// Currently the input MS must be given. // Currently the input MS must be given.
......
...@@ -224,11 +224,11 @@ void testAvg1() ...@@ -224,11 +224,11 @@ void testAvg1()
{ {
// Average in a single step. // Average in a single step.
ofstream ostr("tNDPPP_tmp.parset"); ofstream ostr("tNDPPP_tmp.parset");
ostr << "msin=tNDPPP_tmp.MS" << endl; ostr << "msin.name=tNDPPP_tmp.MS" << endl;
// Give start and end time as actual, hence no missing timeslots. // Give start and end time as actual, hence no missing timeslots.
ostr << "msin.starttime=03-Aug-2000/13:22:20" << endl; ostr << "msin.starttime=03-Aug-2000/13:22:20" << endl;
ostr << "msin.endtime=03-Aug-2000/13:31:45" << endl; ostr << "msin.endtime=03-Aug-2000/13:31:45" << endl;
ostr << "msout=tNDPPP_tmp.MS2" << endl; ostr << "msout.name=tNDPPP_tmp.MS2" << endl;
ostr << "msout.overwrite=true" << endl; ostr << "msout.overwrite=true" << endl;
ostr << "steps=[avg,count]" << endl; ostr << "steps=[avg,count]" << endl;
ostr << "avg.type=average" << endl; ostr << "avg.type=average" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment