GalSim-developers/GalSim — pull request #622 by rmandelb (2014-12-31 14:47:25+00:00)
Title: #558 - quantizing images to integer values

This is a quite small pull request for functionality that can be used to simulate the image generation process in detail - the process of rounding the pixel values to integer values using the new ```quantize()``` method. Like the other routines in detectors.py, this acts directly on the image itself. It preserves the dtype, which can be useful since after the steps in the image generation process that cause rounding to integer values, there can be other steps that do not necessarily lead to integer pixel values.