Source
xxxxxxxxxx
ChannelAverageTVICompareTest::ChannelAverageTVICompareTest(Record configuration): FreqAxisTVITest(configuration)
//# tChannelAverageTVI: This file contains the unit tests of the ChannelAverageTVI class.
//#
//# CASA - Common Astronomy Software Applications (http://casa.nrao.edu/)
//# Copyright (C) Associated Universities, Inc. Washington DC, USA 2011, All rights reserved.
//# Copyright (C) European Southern Observatory, 2011, All rights reserved.
//#
//# This library is free software; you can redistribute it and/or
//# modify it under the terms of the GNU Lesser General Public
//# License as published by the Free software Foundation; either
//# version 2.1 of the License, or (at your option) any later version.
//#
//# This library is distributed in the hope that it will be useful,
//# but WITHOUT ANY WARRANTY, without even the implied warranty of
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
//# Lesser General Public License for more details.
//#
//# You should have received a copy of the GNU Lesser General Public
//# License along with this library; if not, write to the Free Software
//# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
//# MA 02111-1307 USA
//# $Id: $
using namespace std;
using namespace casa;
using namespace casacore;
using namespace casa::vi;
//////////////////////////////////////////////////////////////////////////
// ChannelAverageTVITest class
//////////////////////////////////////////////////////////////////////////
// -----------------------------------------------------------------------
//
// -----------------------------------------------------------------------
void ChannelAverageTVICompareTest::generateTestFile()
{
String path("");
if (autoMode_p) path = String("/data/regression/unittest/flagdata/");
copyTestFile(path,inpFile_p,testFile_p);
return;
}
// -----------------------------------------------------------------------
//
// -----------------------------------------------------------------------
void ChannelAverageTVICompareTest::generateReferenceFile()
{
String path("");
if (autoMode_p) path = String("/data/regression/unittest/flagdata/");
copyTestFile(path,inpFile_p,referenceFile_p);
return;
}
// -----------------------------------------------------------------------
//
// -----------------------------------------------------------------------
void ChannelAverageTVICompareTest::initTestConfiguration(Record &configuration)
{
testConfiguration_p = configuration;
testConfiguration_p.define ("inputms", testFile_p);
return;
}
// -----------------------------------------------------------------------
//
// -----------------------------------------------------------------------
void ChannelAverageTVICompareTest::initReferenceConfiguration(Record &configuration)
{
refConfiguration_p = configuration;
refConfiguration_p.define ("inputms", referenceFile_p);
refConfiguration_p.define ("reindex", false);
refConfiguration_p.define ("chanaverage", true);
refConfiguration_p.define ("datacolumn", String("ALL"));
return;
}
// -----------------------------------------------------------------------
//
// -----------------------------------------------------------------------