Changeset 1695 for trunk


Ignore:
Timestamp:
02/11/10 09:56:55 (15 years ago)
Author:
Malte Marquarding
Message:

Use print_log_dec consistently

Location:
trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r1597 r1695  
    1 from asap import rcParams, print_log, selector, scantable
     1from asap import rcParams, print_log, print_log_dec
     2from asap import selector, scantable
    23import matplotlib.axes
    34from matplotlib.font_manager import FontProperties
     
    5859        return asaplot(**kwargs)
    5960
    60 
     61    @print_log_dec
    6162    def plot(self, scan=None):
    6263        """
     
    102103        self._plotter.tidy()
    103104        self._plotter.show(hardrefresh=False)
    104         print_log()
    105105        return
    106106
     
    130130        self._plotter.axes.set_xlim(xmin-marg, xmax+marg)
    131131        self.refresh()
    132        
     132
    133133        def cleanup(lines=False, texts=False, refresh=False):
    134134            if lines:
     
    141141        for w in xrange(nwin):
    142142            wpos = []
    143             self.text(0.05,1.0, "Add start boundary", 
     143            self.text(0.05,1.0, "Add start boundary",
    144144                      coords="relative", fontsize=10)
    145145            point = self._plotter.get_point()
     
    148148                continue
    149149            wpos.append(point[0])
    150             self.axvline(wpos[0], color=color)               
     150            self.axvline(wpos[0], color=color)
    151151            self.text(0.05,1.0, "Add end boundary", coords="relative", fontsize=10)
    152152            point = self._plotter.get_point()
     
    968968        PL.ion()
    969969        PL.draw()
    970 
  • trunk/python/asapreader.py

    r1059 r1695  
    11from asap._asap import stfiller
    2 from asap import print_log
     2from asap import print_log_dec
    33
    44class reader(stfiller):
     
    2525               rpfits ONLY.
    2626    """
    27 
     27    @print_log_dec
    2828    def __init__(self, filename, unit=None, theif=None, thebeam=None):
    2929        self.unit = unit
     
    4646        filename = expandvars(filename)
    4747        stfiller.__init__(self, filename, theif, thebeam)
    48         print_log()
    4948
     49    @print_log_dec
    5050    def read(self):
    5151        """
     
    5959        if self.unit is not None:
    6060            tbl.set_fluxunit(self.unit)
    61         print_log()
    6261        return scantable(tbl)
    6362
Note: See TracChangeset for help on using the changeset viewer.