Changeset 1006


Ignore:
Timestamp:
04/07/06 10:43:30 (18 years ago)
Author:
mar637
Message:

removed function body for deprecated functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r1005 r1006  
    253253
    254254    def set_cursor(self, beam=0, IF=0, pol=0):
    255         """
    256         Set the spectrum for individual operations.
    257         Parameters:
    258             beam, IF, pol:    a number
    259         Example:
    260             scan.set_cursor(0,0,1)
    261             pol1sig = scan.stats(all=False) # returns std dev for beam=0
    262                                             # if=0, pol=1
    263         """
    264         print "DEPRECATED"
    265         varlist = vars()
    266         sel = asap._asap.Selector()
    267         sel._setbeams([beam])
    268         sel._setpols([pol])
    269         sel._setifs([IF])
    270         self._add_history("set_cursor", varlist)
    271         return
     255        print "DEPRECATED - use set_selection"
    272256
    273257    def get_cursor(self):
    274         """
    275         Return/print a the current 'cursor' into the Beam/IF/Pol cube.
    276         Parameters:
    277             none
    278         Returns:
    279             a list of values (currentBeam,currentIF,currentPol)
    280         Example:
    281             none
    282         """
    283         print "DEPRECATED"
    284         sel = self._getselection()
    285         i = sel.getbeams()[0]
    286         j = sel.getifs()[0]
    287         k = sel.getpols()[0]
    288         from asap import asaplog
    289         out = "--------------------------------------------------\n"
    290         out += " Cursor position\n"
    291         out += "--------------------------------------------------\n"
    292         out += 'Beam=%d IF=%d Pol=%d ' % (i,j,k)
    293         asaplog.push(out)
    294         print_log()
    295         return i,j,k
     258        print "DEPRECATED - use get_selection"
    296259
    297260    def stats(self, stat='stddev', mask=None):
Note: See TracChangeset for help on using the changeset viewer.