Skip to content
Snippets Groups Projects
Commit b442d9a1 authored by Andre Offringa's avatar Andre Offringa
Browse files

Merge branch 'fix-casacore-warnings' into 'master'

Fix warnings in casacore's constants

See merge request !163
parents 2bb964df 47ab87e5
No related branches found
No related tags found
1 merge request!163Fix warnings in casacore's constants
Pipeline #104601 passed
......@@ -7,6 +7,7 @@
#include <casacore/casa/BasicSL/Constants.h>
#include <cassert>
#include <cmath>
#include <utility>
#include <aocommon/matrix2x2.h>
......@@ -170,13 +171,13 @@ void JonesParameters::MakeComplex(
break;
case GainType::kClock:
parms_(0, ant, tf) =
StablePolar(1., parm_values[0][ant][tf] * freq * casacore::C::_2pi);
StablePolar(1., parm_values[0][ant][tf] * freq * 2.0 * M_PI);
if (parm_values.size() == 1) { // No Clock:0, only Clock:
parms_(1, ant, tf) = StablePolar(
1., parm_values[0][ant][tf] * freq * casacore::C::_2pi);
parms_(1, ant, tf) =
StablePolar(1.0, parm_values[0][ant][tf] * freq * 2.0 * M_PI);
} else { // Clock:0 and Clock:1
parms_(1, ant, tf) = StablePolar(
1., parm_values[1][ant][tf] * freq * casacore::C::_2pi);
parms_(1, ant, tf) =
StablePolar(1.0, parm_values[1][ant][tf] * freq * 2.0 * M_PI);
}
break;
case GainType::kRotationAngle: {
......
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