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 |
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.
def tests.test_sdfit.sdfit_test.checkResult | ( | self, | |
result, | |||
answer | |||
) |
Definition at line 323 of file test_sdfit.py.
Referenced by tests.test_sdfit.sdfit_test.testGaussian00(), tests.test_sdfit.sdfit_test.testGaussian01(), tests.test_sdfit.sdfit_test.testGaussian02(), tests.test_sdfit.sdfit_test.testGaussian03(), tests.test_sdfit.sdfit_test.testGaussian04(), tests.test_sdfit.sdfit_test.testLorentzian00(), tests.test_sdfit.sdfit_test.testLorentzian01(), tests.test_sdfit.sdfit_test.testLorentzian02(), tests.test_sdfit.sdfit_test.testLorentzian03(), and tests.test_sdfit.sdfit_test.testLorentzian04().
def tests.test_sdfit.sdfit_test.setUp | ( | self | ) |
Definition at line 45 of file test_sdfit.py.
References tests.test_plotuv.plotuv_test.datapath, tests.test_sdcoadd.sdcoadd_unittest_base.datapath, tests.test_sdbaseline.sdbaseline_unittest_base.datapath, tests.test_msmoments.msmoments_unittest_base.datapath, tests.test_sdcal.sdcal_unittest_base.datapath, tests.test_imstat.imstat_test.datapath, tests.test_sdfit.sdfit_test.datapath, tests.test_cleanhelper.cleanhelper_test.datapath, tests.test_imsmooth.imsmooth_test.datapath, tests.test_sdcoadd.sdcoadd_mergeTest.datapath, tests.test_sdbaseline.sdbaseline_funcTest.datapath, casa_in_py.default(), tests.test_sdfit.sdfit_test.infile_gaussian, and tests.test_sdfit.sdfit_test.infile_lorentzian.
def tests.test_sdfit.sdfit_test.tearDown | ( | self | ) |
Definition at line 55 of file test_sdfit.py.
References tests.test_sdfit.sdfit_test.infile_gaussian, and tests.test_sdfit.sdfit_test.infile_lorentzian.
def tests.test_sdfit.sdfit_test.testGaussian00 | ( | self | ) |
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.
def tests.test_sdfit.sdfit_test.testGaussian01 | ( | self | ) |
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.
def tests.test_sdfit.sdfit_test.testGaussian02 | ( | self | ) |
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.
def tests.test_sdfit.sdfit_test.testGaussian03 | ( | self | ) |
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.
def tests.test_sdfit.sdfit_test.testGaussian04 | ( | self | ) |
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.
def tests.test_sdfit.sdfit_test.testLorentzian00 | ( | self | ) |
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.
def tests.test_sdfit.sdfit_test.testLorentzian01 | ( | self | ) |
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.
def tests.test_sdfit.sdfit_test.testLorentzian02 | ( | self | ) |
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.
def tests.test_sdfit.sdfit_test.testLorentzian03 | ( | self | ) |
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.
def tests.test_sdfit.sdfit_test.testLorentzian04 | ( | self | ) |
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.
tuple tests.test_sdfit.sdfit_test.datapath [static] |
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().
string tests.test_sdfit.sdfit_test.infile_gaussian [static] |
Definition at line 42 of file test_sdfit.py.
Referenced by tests.test_sdfit.sdfit_test.setUp(), tests.test_sdfit.sdfit_test_exceptions.setUp(), tests.test_sdfit.sdfit_test.tearDown(), tests.test_sdfit.sdfit_test_exceptions.tearDown(), tests.test_sdfit.sdfit_test.testGaussian00(), tests.test_sdfit.sdfit_test.testGaussian01(), tests.test_sdfit.sdfit_test.testGaussian02(), tests.test_sdfit.sdfit_test.testGaussian03(), tests.test_sdfit.sdfit_test.testGaussian04(), and tests.test_sdfit.sdfit_test_exceptions.testNoData().
string tests.test_sdfit.sdfit_test.infile_lorentzian [static] |
Definition at line 43 of file test_sdfit.py.
Referenced by tests.test_sdfit.sdfit_test.setUp(), tests.test_sdfit.sdfit_test.tearDown(), tests.test_sdfit.sdfit_test.testLorentzian00(), tests.test_sdfit.sdfit_test.testLorentzian01(), tests.test_sdfit.sdfit_test.testLorentzian02(), tests.test_sdfit.sdfit_test.testLorentzian03(), and tests.test_sdfit.sdfit_test.testLorentzian04().