Here are three renderings of the galaxy that I mentioned in this slack thread at different stages of addressing this issue. The first image on the left uses the current code in main. Here the main issue is that the stamp size returned by .getGoodImageSize (here) is so large that the stamp has fewer than 10 photons per pixel on average, so that this line isn't executed and the somewhat brighter sb limit is used instead. After addressing that by testing the image_size vs self._Nmax, the middle image below is the outcome. So I lowered the nominal sb limit used by ._getGoodPhotImageSize from np.sqrt(noise_var)/3. to np.sqrt(noise_var)/8.. With that change, the image on the right is the result.
Note that this fix also needs #394 to work properly for objects like this.
Here are three renderings of the galaxy that I mentioned in this slack thread at different stages of addressing this issue. The first image on the left uses the current code in main. Here the main issue is that the stamp size returned by
.getGoodImageSize
(here) is so large that the stamp has fewer than 10 photons per pixel on average, so that this line isn't executed and the somewhat brighter sb limit is used instead. After addressing that by testing theimage_size
vsself._Nmax
, the middle image below is the outcome. So I lowered the nominal sb limit used by._getGoodPhotImageSize
fromnp.sqrt(noise_var)/3.
tonp.sqrt(noise_var)/8.
. With that change, the image on the right is the result.Note that this fix also needs #394 to work properly for objects like this.