Vector<Float> RLph(phase(cparam(Slice(0,1,1),Slice(),Slice())/cparam(Slice(1,1,1),Slice(),Slice())).nonDegenerate());
#include <casa/aips.h>
#include <casa/iostream.h>
#include <msvis/MSVis/VisBuffer2.h>
#include <msvis/MSVis/SimpleSimVi2.h>
#include <casa/Arrays/ArrayMath.h>
#include <casa/OS/Timer.h>
#include <synthesis/MeasurementComponents/StandardVisCal.h>
#include <synthesis/MeasurementComponents/DJones.h>
#include <synthesis/MeasurementComponents/KJones.h>
#include <synthesis/MeasurementComponents/MSMetaInfoForCal.h>
#include <synthesis/MeasurementEquations/VisEquation.h>
#include <synthesis/MeasurementComponents/VisCalSolver2.h>
#include <gtest/gtest.h>
#include "VisCalTestBase_GT.h"
#define SHOWSTATE false
using namespace casacore;
using namespace casa;
using namespace casa::vi;
class VisCalTest : public ::testing::Test {
public:
VisCalTest() :
nFld(1),
nScan(1),
nSpw(1),
nAnt(5),
nCorr(4),
nChan(1,32),
ss(nFld,nScan,nSpw,nAnt,nCorr,Vector<Int>(1,1),nChan),
msmc(ss)
{}
Int nFld,nScan,nSpw,nAnt,nCorr;
Vector<Int> nChan;
SimpleSimVi2Parameters ss;
MSMetaInfoForCal msmc;
};
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
TEST_F(VisCalTest, GJonesApplyState) {
VisCal *G = new GJones(msmc);
G->setApply();
G->setMeta(0,0,0.0,
0,ss.freqs(0),
0);
G->sizeApplyParCurrSpw(ss.nChan_(0));
G->setDefApplyParCurrSpw(true,true);