Skip to content
Snippets Groups Projects
Commit ff6f8ae2 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #3376: Parset changes required to fix build

parent 4d5fa700
No related branches found
No related tags found
No related merge requests found
......@@ -192,6 +192,7 @@ class Parset: public ParameterSet
unsigned nrBeams() const;
std::string beamTarget(unsigned beam) const;
double beamDuration(unsigned beam) const;
unsigned nrPencilBeams(unsigned beam) const;
std::vector<unsigned> nrPencilBeams() const;
......
......@@ -442,6 +442,18 @@ string Parset::beamTarget(unsigned beam) const
return getString(key, "");
}
double Parset::beamDuration(unsigned beam) const
{
string key = str(boost::format("Observation.Beam[%u].duration") % beam);
double val = getDouble(key, 0.0);
// a sane default
if (val == 0.0)
val = stopTime() - startTime();
return val;
}
std::vector<double> Parset::getPencilBeam(unsigned beam, unsigned pencil) const
{
......
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