Permalink
Browse files

Merge branch 'master' into #27

  • Loading branch information...
2 parents d245f29 + 4a61853 commit 5bbb3a1d52627644319e316f2eb4305f8fd65649 @barnabytprowe barnabytprowe committed Apr 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 galsim/noise.py
View
@@ -22,7 +22,7 @@ def addGaussian(Image, uniform, mean=0., sigma=1.):
imtype = Image.array.dtype.type
Image += galsim.Image[imtype](np.array([g() for i in xrange(np.product(Image.array.shape))],
dtype=imtype).reshape(Image.array.shape),
- xMin=Image.getXMin(), yMin=Image.getYMin)
+ xMin=Image.getXMin(), yMin=Image.getYMin())
return Image
def addPoisson(Image, uniform, gain=1.):
@@ -46,7 +46,7 @@ def addPoisson(Image, uniform, gain=1.):
elist = list(Image.array.flatten('C') * gain)
Image += galsim.Image[imtype](np.array([poissonwithmean(p, elecs) / gain for elecs in elist],
dtype=imtype).reshape(Image.array.shape, order='C'),
- xMin=Image.getXmin(), yMin=Image.getYMin()) \
+ xMin=Image.getXMin(), yMin=Image.getYMin()) \
- Image # Barney note: need to understand image operations better, couldn't get
# other assignment to work on output after leaving function scope
return Image

0 comments on commit 5bbb3a1

Please sign in to comment.