casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions | Static Public Attributes
tests.test_sdfit.sdfit_test Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def testGaussian00
def testGaussian01
def testGaussian02
def testGaussian03
def testGaussian04
def testLorentzian00
def testLorentzian01
def testLorentzian02
def testLorentzian03
def testLorentzian04
def checkResult

Static Public Attributes

tuple datapath
string infile_gaussian
string infile_lorentzian

Detailed Description

Unit tests for task sdfit. No interactive testing.

The list of tests:
testGaussian00 --- test fitting a broad Gaussian profile (centre=4000, fwhm=1000, ampl=10)
testGaussian01 --- test fitting a broad Gaussian profile (centre= 500, fwhm=1000, ampl=10) : on spectral edge
testGaussian02 --- test fitting a narrow Gaussian profile (centre=4000, fwhm=100, ampl=10)
testGaussian03 --- test fitting a combination of broad and narrow Gaussian profiles
                   (cen1=3000,fwhm1=1000,ampl1=10,cen2=6000,fwhm2=100,ampl2=10) : separated
testGaussian04 --- test fitting a combination of broad and narrow Gaussian profiles
                   (cen1=4000,fwhm1=1000,ampl1=10,cen2=4700,fwhm2=100,ampl2=10) : overlapped
testLorentzian00 --- test fitting a broad Lorentzian profile (centre=4000, fwhm=1000, ampl=10)
testLorentzian01 --- test fitting a broad Lorentzian profile (centre= 500, fwhm=1000, ampl=10) : on spectral edge
testLorentzian02 --- test fitting a narrow Lorentzian profile (centre=4000, fwhm=100, ampl=10)
testLorentzian03 --- test fitting a combination of broad and narrow Lorentzian profiles
                   (cen1=3000,fwhm1=1000,ampl1=10,cen2=6000,fwhm2=100,ampl2=10) : separated
testLorentzian04 --- test fitting a combination of broad and narrow Lorentzian profiles
                   (cen1=4000,fwhm1=1000,ampl1=10,cen2=4700,fwhm2=100,ampl2=10) : overlapped

Note: (1) the rms noise is 1.0 for all data.

created 21/04/2011 by Wataru Kawasaki

Definition at line 15 of file test_sdfit.py.


Member Function Documentation

def tests.test_sdfit.sdfit_test.checkResult (   self,
  result,
  answer 
)
Test Gaussian00: single broad profile 

Definition at line 61 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_gaussian.

Test Gaussian01: single broad profile on spectral edge

Definition at line 86 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_gaussian.

Test Gaussian02: single narrow profile 

Definition at line 111 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_gaussian.

Test Gaussian03: broad/narrow combination : separated 

Definition at line 136 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_gaussian.

Test Gaussian04: broad/narrow combination : overlapped 

Definition at line 164 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_gaussian.

Test Lorentzian00: single broad profile 

Definition at line 192 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_lorentzian.

Test Lorentzian01: single broad profile on spectral edge

Definition at line 217 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_lorentzian.

Test Lorentzian02: single narrow profile 

Definition at line 242 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_lorentzian.

Test Lorentzian03: broad/narrow combination : separated 

Definition at line 267 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_lorentzian.

Test Lorentzian04: broad/narrow combination : overlapped 

Definition at line 295 of file test_sdfit.py.

References tests.test_sdfit.sdfit_test.checkResult(), and tests.test_sdfit.sdfit_test.infile_lorentzian.


Member Data Documentation

Definition at line 40 of file test_sdfit.py.

Referenced by tests.test_simobserve.simobserve_unittest_base._copy_input(), tests.test_sdgrid.sdgrid_unittest_base.addrow(), tests.test_sdlist.sdlist_test.setUp(), tests.test_sdflag.sdflag_test.setUp(), tests.test_sdflagmanager.sdflagmanager_test.setUp(), tests.test_sdreduce.sdreduce_test.setUp(), tests.test_sdfit.sdfit_test.setUp(), tests.test_sdsmooth.sdsmooth_badinputs.setUp(), tests.test_sdgrid.sdgrid_failure_case.setUp(), tests.test_sdimaging.sdimaging_test0.setUp(), tests.test_sdsmooth.sdsmooth_basicTest.setUp(), tests.test_sdplot.sdplot_errorTest.setUp(), tests.test_sdgrid.sdgrid_single_integ.setUp(), tests.test_sdstat.sdstat_basicTest.setUp(), tests.test_sdimaging.sdimaging_test1.setUp(), tests.test_sdplot.sdplot_basicTest.setUp(), tests.test_sdgrid.sdgrid_clipping.setUp(), tests.test_sdfit.sdfit_test_exceptions.setUp(), tests.test_sdgrid.sdgrid_flagging.setUp(), tests.test_sdgrid.sdgrid_weighting.setUp(), tests.test_sdstat.sdstat_restfreqTest.setUp(), tests.test_sdimaging.sdimaging_test2.setUp(), tests.test_sdgrid.sdgrid_map.setUp(), tests.test_sdsmooth.sdsmooth_storageTest.setUp(), tests.test_sdsave.sdsave_test7.setUp(), tests.test_sdimaging.sdimaging_test3.setUp(), tests.test_sdstat.sdstat_storageTest.setUp(), tests.test_sdgrid.sdgrid_dec_correction.setUp(), tests.test_sdmath.sdmath_storageTest.setUp(), tests.test_sdgrid.sdgrid_grid_center.setUp(), tests.test_sdstat.sdstat_exceptions.setUp(), tests.test_simobserve.simobserve_badinputs.setUp(), tests.test_sdplot.sdplot_storageTest.setUp(), tests.test_sdsave.sdsave_storageTest.setUp(), tests.test_sdplot.sdplot_gridTest.setUp(), tests.test_sdplot.sdplot_selectTest.setUp(), tests.test_sdimprocess.sdimprocess_test0.test005(), tests.test_sdmath.sdmath_test0.test007(), tests.test_sdlist.sdlist_test.test01(), tests.test_sdlist.sdlist_test.test02(), tests.test_sdlist.sdlist_test.test03(), and tests.test_sdstat.sdstat_basicTest.test11().


The documentation for this class was generated from the following file: