DP3
PyStep.h
Go to the documentation of this file.
1 // Copyright (C) 2022 ASTRON (Netherlands Institute for Radio Astronomy)
2 // SPDX-License-Identifier: GPL-3.0-or-later
3 
4 #ifndef DP3_STEPS_PYDPSTEP_H_
5 #define DP3_STEPS_PYDPSTEP_H_
6 
7 #include "steps/Step.h"
8 #include "common/ParameterSet.h"
9 
10 namespace dp3 {
11 namespace pythondp3 {
12 
13 class PyStep final : public steps::Step {
14  public:
15  static std::shared_ptr<PyStep> create_instance(
16  const common::ParameterSet& parset, const std::string& prefix);
17  using steps::Step::Step;
18 
19  PyStep();
20 
21  void show(std::ostream& os) const override;
22 
25 
26  void updateInfo(const base::DPInfo&) override;
27 
28  bool process(std::unique_ptr<base::DPBuffer>) override;
29 
30  void finish() override;
31 };
32 
33 } // namespace pythondp3
34 } // namespace dp3
35 
36 #endif // DP3_STEPS_PYDPSTEP_H_
Class to hold code for virtual base class for Flaggers in DP3.
General info about DP3 data processing attributes like averaging.
Definition: DPInfo.h:35
Definition: Fields.h:16
Implements a map of Key-Value pairs.
Definition: ParameterSet.h:31
Definition: PyStep.h:13
common::Fields getRequiredFields() const override
Get the fields required by the current step.
void show(std::ostream &os) const override
Show the step parameters.
void updateInfo(const base::DPInfo &) override
bool process(std::unique_ptr< base::DPBuffer >) override
static std::shared_ptr< PyStep > create_instance(const common::ParameterSet &parset, const std::string &prefix)
common::Fields getProvidedFields() const override
void finish() override
Finish the processing of this step and subsequent steps.
Abstract base class for a DP3 step.
Definition: Step.h:52
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53