Changeset 621

Show
Ignore:
Timestamp:
09/17/08 14:39:17 (2 months ago)
Author:
laidler
Message:

Modified basecase.testcrphotlam to use the synphot waveset for the Observation binset, as testcrcounts does. Also added a stis case to the science_cases.py.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pysynphot/test/commissioning/basecase.py

    r612 r621  
    322322                pass 
    323323    def testcrphotlam(self): 
    324         obs=S.Observation(self.sptest,self.bp) 
    325         obs.convert('photlam') 
    326324        self.run_countrate('photlam',self.crname) 
    327325        spref=S.FileSpectrum(self.crname) 
     326        obs=S.Observation(self.sptest,self.bp,binset=spref.wave) 
     327        obs.convert('photlam') 
    328328        ridx=N.where(spref.wave >= 900.0) 
    329329        rflux=spref.flux[ridx] 
  • trunk/pysynphot/test/commissioning/commissioning_report.txt

    r613 r621  
    6868  wavelength table used for the synphot-computed throughput. 
    6969 
    70 testcrphotlam: 
    71   For this test, the synphot.countrate task selects its wavelength 
    72   table from the wavecat based on the obsmode, and the pysynphot 
    73   Observation selects its binned wavelength set from the same wavecat 
    74   based on the obsmode. Thus the synphot spectrum can be compared 
    75   directly to the binned tables associated with the pysynphot 
    76   Observation. 
    77  
    78 testcrcounts: 
    79   For this test, the wavelength table from the synphot-computed 
     70testcrcounts, testcrphotlam: 
     71  For these tests, the wavelength table from the synphot-computed 
    8072  spectrum is used as the binned wavelength set when constructing 
    8173  the pysynphot Observation. 
     
    138130 
    139131- Incorrect calculation of interpolated spectral elements (#134) 
    140 - Incorrect tapering behavior (TBD #149
    141 - FITS files written to single precision by default (#146 in progress
     132- Incorrect tapering behavior (#149 in progress
     133- FITS files written to single precision by default (#146
    142134- Incorrect parsing of obsmode keywords that look like numbers (#125) 
    143135- Incorrect parsing of band() arguments (#126) 
  • trunk/pysynphot/test/commissioning/science_cases.py

    r488 r621  
    124124        self.setglobal(__file__) 
    125125        self.runpy() 
     126class stisV1(basecase.countrateCase): 
     127    def setUp(self): 
     128        self.obsmode='stis,ccd' 
     129        self.spectrum='rn(unit(1,flam),band(johnson,v),15.0,vegamag)' 
     130        self.setglobal(__file__) 
     131        self.runpy() 
     132 
    126133 
    127134class acsS0(basecase.countrateCase):