Changeset 2984 for trunk


Ignore:
Timestamp:
08/14/14 19:12:51 (10 years ago)
Author:
WataruKawasaki
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): sd.scantable

Description: a minor clean-up in do_pack_blinfo() and sub_baseline().


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2973 r2984  
    231231            dinfo[key] = sval
    232232
    233     blfunc = dinfo['blfunc']
    234233    fspec_keys = {'poly': 'order', 'chebyshev': 'order', 'cspline': 'npiece', 'sinusoid': 'nwave'}
    235234
    236     fspec_key = fspec_keys[blfunc]
     235    fspec_key = fspec_keys[dinfo['blfunc']]
    237236    if not blinfo.has_key(fspec_key):
    238237        raise ValueError("'"+fspec_key+"' is missing in blinfo.")
     
    274273        raise ValueError("all of 'thresh', 'edge' and 'chan_avg_limit' must be given to use linefinder.")
    275274   
    276     slblinfo = [dinfo['row'], blfunc, dinfo[fspec_key], dinfo['masklist'], \
     275    slblinfo = [dinfo['row'], dinfo['blfunc'], dinfo[fspec_key], dinfo['masklist'], \
    277276                dinfo['clipthresh'], dinfo['clipniter'], \
    278277                dinfo['use_linefinder'], dinfo['thresh'], dinfo['edge'], dinfo['chan_avg_limit']]
     
    34943493            in_blinfo = pack_blinfo(blinfo=blinfo, maxirow=nrow)
    34953494
    3496             print "in_blinfo=< "+ str(in_blinfo)+" >"
    3497 
    34983495            sres = workscan._sub_baseline(in_blinfo,
    34993496                                          retfitres,
Note: See TracChangeset for help on using the changeset viewer.