Changeset 2984 for trunk/python
- Timestamp:
- 08/14/14 19:12:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2973 r2984 231 231 dinfo[key] = sval 232 232 233 blfunc = dinfo['blfunc']234 233 fspec_keys = {'poly': 'order', 'chebyshev': 'order', 'cspline': 'npiece', 'sinusoid': 'nwave'} 235 234 236 fspec_key = fspec_keys[ blfunc]235 fspec_key = fspec_keys[dinfo['blfunc']] 237 236 if not blinfo.has_key(fspec_key): 238 237 raise ValueError("'"+fspec_key+"' is missing in blinfo.") … … 274 273 raise ValueError("all of 'thresh', 'edge' and 'chan_avg_limit' must be given to use linefinder.") 275 274 276 slblinfo = [dinfo['row'], blfunc, dinfo[fspec_key], dinfo['masklist'], \275 slblinfo = [dinfo['row'], dinfo['blfunc'], dinfo[fspec_key], dinfo['masklist'], \ 277 276 dinfo['clipthresh'], dinfo['clipniter'], \ 278 277 dinfo['use_linefinder'], dinfo['thresh'], dinfo['edge'], dinfo['chan_avg_limit']] … … 3494 3493 in_blinfo = pack_blinfo(blinfo=blinfo, maxirow=nrow) 3495 3494 3496 print "in_blinfo=< "+ str(in_blinfo)+" >"3497 3498 3495 sres = workscan._sub_baseline(in_blinfo, 3499 3496 retfitres,
Note:
See TracChangeset
for help on using the changeset viewer.