Changeset 2840 for trunk/python


Ignore:
Timestamp:
08/26/13 10:21:56 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: No

Module(s): sd

Description: Describe your changes here...

Fixed a bug in scantable.auto_quotient. When scantable has a selection
on field name, the selection will be overwritten by source type selection
using selector.set_query method. Thus, source type selection is done
by selector.set_types method that will not overwrite field name selection.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2820 r2840  
    43064306        s = None
    43074307        if mode.lower() == "paired":
     4308            from asap._asap import srctype
    43084309            sel = self.get_selection()
    4309             sel.set_query("SRCTYPE==psoff")
     4310            #sel.set_query("SRCTYPE==psoff")
     4311            sel.set_types(srctype.psoff)
    43104312            self.set_selection(sel)
    43114313            offs = self.copy()
    4312             sel.set_query("SRCTYPE==pson")
     4314            #sel.set_query("SRCTYPE==pson")
     4315            sel.set_types(srctype.pson)
    43134316            self.set_selection(sel)
    43144317            ons = self.copy()
Note: See TracChangeset for help on using the changeset viewer.