Exemplo n.º 1
0
 def __str__(self):
     try:
         return '%s: %s, %i x %i' % (
             getClassName(self), self.psfclass.__name__, self.nx, self.ny)
     except:
         return '%s: %s, %i x %i' % (getClassName(self), self.psfclass,
                                     self.nx, self.ny)
Exemplo n.º 2
0
 def __str__(self):
     s = getClassName(self) + ': '
     ss = []
     for b in self.order:
         f = self.getFlux(b)
         if f <= 0:
             ss.append('%s=(flux %.3g)' % (b, f))
         else:
             m = self.getMag(b)
             ss.append('%s=%.3g' % (b, m))
     s += ', '.join(ss)
     return s
Exemplo n.º 3
0
 def __str__(self):
     from tractor.utils import getClassName
     return ('%s: x0,y0 %.3f,%.3f, WCS ' % (getClassName(self), self.x0, self.y0)
             + str(self.wcs))
Exemplo n.º 4
0
 def __str__(self):
     return '%s: rounding %i, %s' % (getClassName(self), self.rounding,
                                     super(CachingPsfEx, self).__str__())