Skip to content
Snippets Groups Projects
Commit 855ddeb3 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Task #10974: DPPP now recognizes the type of numbered steps

parent b37f6913
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,7 @@
#include <casacore/casa/OS/DirectoryIterator.h>
#include <casacore/casa/OS/Timer.h>
#include <casacore/casa/OS/DynLib.h>
#include <casacore/casa/Utilities/Regex.h>
namespace LOFAR {
namespace DPPP {
......@@ -280,8 +281,12 @@ namespace LOFAR {
for (vector<string>::const_iterator iter = steps.begin();
iter != steps.end(); ++iter) {
string prefix(*iter + '.');
// The name is the default step type.
string type = toLower(parset.getString (prefix+"type", *iter));
// The alphabetic part of the name is the default step type.
// This allows names like average1, out3.
int res = casacore::Regex("[a-z]+").match((*iter).c_str(), (*iter).size());
string defaulttype = (*iter).substr(0,res);
string type = toLower(parset.getString (prefix+"type", defaulttype));
// Define correct name for AOFlagger synonyms.
if (type == "aoflagger" || type == "rficonsole") {
type = "aoflag";
......
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