4 #ifndef DP3_STEPS_PREDICT_H_
5 #define DP3_STEPS_PREDICT_H_
43 const std::vector<std::string>& source_patterns,
60 bool process(std::unique_ptr<base::DPBuffer>)
override;
62 bool process(std::unique_ptr<base::BdaBuffer>)
override;
66 void show(std::ostream&)
const override;
93 const std::vector<std::string>& source_patterns,
99 bool use_fast_predict_{
false};
101 std::vector<std::shared_ptr<Step>> internal_steps_;
102 std::shared_ptr<BdaAverager> bda_averager_;
103 std::shared_ptr<ModelDataStep> predict_step_;
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
Implements a map of Key-Value pairs.
Definition: ParameterSet.h:31
Common interface for steps that produce model data.
Definition: Step.h:172
DP3 step class that predicts visibilities from a source model. This step contains OnePredict sub-step...
Definition: Predict.h:24
~Predict() override
Definition: Predict.h:46
bool process(std::unique_ptr< base::BdaBuffer >) override
Predict(const common::ParameterSet &parset, const std::string &prefix, const std::vector< std::string > &source_patterns, MsType input_type=MsType::kRegular)
void show(std::ostream &) const override
Show the step parameters.
void SetThreadData(std::mutex *mutex)
void setNextStep(std::shared_ptr< Step > next_step) override
Ensures that all steps, including internal sub-steps, form a single list.
MsType outputs() const override
Return which datatype this step outputs.
Definition: Predict.h:79
bool process(std::unique_ptr< base::DPBuffer >) override
bool accepts(MsType dt) const override
Boolean if this step can process this type of data.
Definition: Predict.h:77
void finish() override
Finish the processing of this step and subsequent steps.
void SetOperation(const std::string &operation)
common::Fields getRequiredFields() const override
Get the fields required by the current step.
Definition: Predict.h:48
common::Fields getProvidedFields() const override
Definition: Predict.h:54
void updateInfo(const base::DPInfo &) override
Predict(const common::ParameterSet &parset, const std::string &prefix, MsType input_type=MsType::kRegular)
base::Direction GetFirstDirection() const override
MsType
To check compatibility between steps before running.
Definition: Step.h:57
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53
A direction on the celestial sphere.
Definition: Direction.h:15