Changeset 1031 for trunk/python


Ignore:
Timestamp:
04/26/06 10:43:17 (19 years ago)
Author:
mar637
Message:

Fix for Ticket #31; I forgot to change this when I changed the return value of get_parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapfitter.py

    r1017 r1031  
    180180        fixed = None
    181181        params = None
    182        
     182
    183183        if len(args) and isinstance(args[0],dict):
    184184            kwargs = args[0]
     
    305305        if rcParams['verbose']:
    306306            print fpars
    307         return {'params':cpars, 'fixed':cfixed}
     307        return {'params':cpars, 'fixed':cfixed, 'formatted': fpars}
    308308
    309309    def _format_pars(self, pars, fixed, area):
     
    457457            if isinstance(components,int): cs = [components]
    458458            if plotparms:
    459                 self._p.text(0.15,0.15,str(self.get_parameters()[2]),size=8)
     459                self._p.text(0.15,0.15,str(self.get_parameters()['formatted']),size=8)
    460460            n = len(self.components)
    461461            self._p.palette(3)
     
    506506        asaplog.push("Fitting:")
    507507        for r in rows:
    508             out = " Scan[%d] Beam[%d] IF[%d] Pol[%d] Cycle[%d]" %        (scan.getscan(r),scan.getbeam(r),scan.getif(r),scan.getpol(r), scan.getcycle(r))
     508            out = " Scan[%d] Beam[%d] IF[%d] Pol[%d] Cycle[%d]" % (scan.getscan(r),scan.getbeam(r),scan.getif(r),scan.getpol(r), scan.getcycle(r))
    509509            asaplog.push(out, False)
    510510            self.x = scan._getabcissa(r)
Note: See TracChangeset for help on using the changeset viewer.