@@ -105,8 +105,8 @@ def getBasisFunc(self, index):
105
105
106
106
def drawImage (self , * args , ** kwargs ):
107
107
key = (args , tuple (sorted (kwargs .items ())))
108
- return np .add .reduce (
109
- [self .cache ((key , idx ))* c for idx , c in zip (self .indices , self .getCoeffs ())])
108
+ return galsim . ImageF ( np .add .reduce (
109
+ [self .cache ((key , idx ))* c for idx , c in zip (self .indices , self .getCoeffs ())]))
110
110
111
111
def drawKImage (self , * args , ** kwargs ):
112
112
key = (args , tuple (sorted (kwargs .items ())))
@@ -165,7 +165,7 @@ def getCoeffs(self):
165
165
def getBasisFunc (self , index ):
166
166
return galsim .Convolve ([obj .getBasisFunc (idx ) for obj , idx in zip (self .objlist , index [1 ])])
167
167
168
-
168
+
169
169
class Spergelet (galsim .GSObject ):
170
170
"""A basis function in the Taylor series expansion of the Spergel profile.
171
171
@@ -262,7 +262,6 @@ def getCoeffs(self):
262
262
263
263
def getCoeff (self , j , q ):
264
264
ellip , phi0 , Delta = self ._decomposeA ()
265
- print "ellip:{} phi0:{} Delta:{}" .format (ellip , phi0 , Delta )
266
265
coeffs = []
267
266
coeff = 0.0
268
267
for m in range (abs (q ), j + 1 ):
@@ -277,7 +276,6 @@ def getCoeff(self, j, q):
277
276
num *= ellip ** m
278
277
den = 2 ** (m - 1 ) * math .factorial (j - m ) * math .factorial (m - n ) * math .factorial (n )
279
278
coeff += num / den
280
- print "j:{} q:{} m:{} n:{} num:{}, den:{}" .format (j , q , m , n , num , den )
281
279
if q > 0 :
282
280
coeff *= self .flux * math .cos (2 * q * phi0 )
283
281
elif q < 0 :
0 commit comments