Changeset 2599


Ignore:
Timestamp:
07/12/12 14:29:48 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (a bug fix)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): scantable, and sdtasks with restfreq parameter

Description:

Fixed a bug in scantable.set_restfreq(), i.e., the method ignored user selection
of scantable and caused unexpected modification of restvfrequencies.
It now modifies rest frequencies of selected data only.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2591 r2599  
    17531753                else:
    17541754                    # allow the 'old' mode of setting mulitple IFs
    1755                     sel = selector()
    17561755                    savesel = self._getselection()
     1756                    sel = self.get_selection()
    17571757                    iflist = self.getifnos()
    17581758                    if len(freqs)>len(iflist):
     
    17751775                self._setrestfreqs(values, names, unit)
    17761776            elif isinstance(freqs[-1], list) or isinstance(freqs[-1], tuple):
    1777                 sel = selector()
    17781777                savesel = self._getselection()
     1778                sel = self.get_selection()
    17791779                iflist = self.getifnos()
    17801780                if len(freqs)>len(iflist):
     
    17881788        # freqs are to be taken from a linecatalog
    17891789        elif isinstance(freqs, linecatalog):
    1790             sel = selector()
    17911790            savesel = self._getselection()
     1791            sel = self.get_selection()
    17921792            for i in xrange(freqs.nrow()):
    17931793                sel.set_ifs(iflist[i])
Note: See TracChangeset for help on using the changeset viewer.