Great catch, thank you!!
--
Barnaby Rowe
Postdoctoral Research Associate

Department of Physics & Astronomy
University College London
Gower Street
London WC1E 6BT
United Kingdom

On 13 Mar 2013, at 18:18, Mike Jarvis wrote:

> In galsim/base.py:
> 
> >              elif use_cache and noise_pad in InterpolatedImage._cache_noise_pad:
> > -                cf = InterpolatedImage._cache_noise_pad[noise_pad]
> > +                cn = InterpolatedImage._cache_noise_pad[noise_pad]
> > +                # Make sure that we are using the desired RNG by resetting that in this cached
> > +                # CorrelatedNoise instance
> > +                # (Barney: don't think it makes sense to prefer a cached RNG to a new one...)
> 
> I added the same thing to another place that was missing the guard.
> 
> —
> Reply to this email directly or view it on GitHub.
>