Skip to content
Snippets Groups Projects
Commit 901f55ce authored by Arno Schoenmakers's avatar Arno Schoenmakers
Browse files

TAsk #8157: Merging branch DPPP-Task8157 into trunk (NOT reintegrate!)

parents 87e40a61 938af19e
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,11 @@ namespace LOFAR { ...@@ -67,6 +67,11 @@ namespace LOFAR {
// Define the shared pointer for this type. // Define the shared pointer for this type.
typedef shared_ptr<DPStep> ShPtr; typedef shared_ptr<DPStep> ShPtr;
// Constructor to initialize.
DPStep()
: itsPrevStep(0)
{}
// Destructor. // Destructor.
virtual ~DPStep(); virtual ~DPStep();
......
...@@ -271,6 +271,7 @@ namespace LOFAR { ...@@ -271,6 +271,7 @@ namespace LOFAR {
void AORFlagger::addToMS (const string& msName) void AORFlagger::addToMS (const string& msName)
{ {
getPrevStep()->addToMS(msName);
itsTimer.start(); itsTimer.start();
if (itsDoRfiStats) { if (itsDoRfiStats) {
itsQualityTimer.start(); itsQualityTimer.start();
......
...@@ -172,6 +172,9 @@ namespace LOFAR { ...@@ -172,6 +172,9 @@ namespace LOFAR {
DPLOG_INFO_STR ("Finishing processing ..."); DPLOG_INFO_STR ("Finishing processing ...");
firstStep->finish(); firstStep->finish();
// Give all steps the option to add something to the MS written. // Give all steps the option to add something to the MS written.
// It starts with the last step to get the name of the output MS,
// but each step must first call its previous step before
// it adds something itself.
lastStep->addToMS(""); lastStep->addToMS("");
// Show the counts where needed. // Show the counts where needed.
......
...@@ -46,7 +46,7 @@ namespace LOFAR { ...@@ -46,7 +46,7 @@ namespace LOFAR {
void DPStep::addToMS (const string& msName) void DPStep::addToMS (const string& msName)
{ {
itsPrevStep->addToMS(msName); if (itsPrevStep) itsPrevStep->addToMS(msName);
} }
void DPStep::showCounts (std::ostream&) const void DPStep::showCounts (std::ostream&) const
......
...@@ -249,6 +249,7 @@ namespace LOFAR { ...@@ -249,6 +249,7 @@ namespace LOFAR {
void Filter::addToMS (const string& msName) void Filter::addToMS (const string& msName)
{ {
getPrevStep()->addToMS(msName);
if (! itsRemoveAnt) { if (! itsRemoveAnt) {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment