Below is a summary of the major changes with each new tagged version of GalSim. Each version may also include various other minor changes and bug fixes not listed here for brevity. See the CHANGELOG files associated with each version for a more complete list. Issue numbers related to each change are given in parentheses. v2.4 ---- *API Changes* - Removed CppEllipse, AstronomicalConstants.h in C++ layer. (#1129) - Removed AttributeDict. (#1129) - Some changes to the C++ Image constructors to include a maxptr value. (#1149) - Changed `SincInterpolant.ixrange` to be consistent with the value of xrange. (#1154) - Changed ``galsim.scene`` namespace name to ``galsim.galaxy_sample``. (#1174) *Config Updates* - Added ``Correlated`` noise type. (#731, #1174) - Added ``galaxy_sample`` input type and ``SampleGalaxy`` GSObject type. (#795, #1174) - Added ``COSMOSValue`` and ``SampleValue`` value types. (#954, #1174) - Allowed template file names to be evaluated using the "$" shorthand notation. (#1138) - Added `RegisterTemplate`. (#1143) - Fixed some errors in `PhotonDCR` usage in the config layer. (#1148) - Added option to specify the dtype for images built by config. (#1160) - Fixed inconsistent behavior of image.world_pos in image type=Single. (#1160) - Let a flux item for an object with an SED normalize the SED. (#1160) - Fixed some edge cases where the created image could not have the requested wcs. (#1160) - Added option to ``initialize`` input objects in an `InputLoader`. (#1162, #1163) - Fixed error in returned variance for ``CCDNoise`` builder. (#1166, #1167) - Changed the way the internal random number sequence works. (#1169) - Made it possible to delete items in a config list. (#1183) - Fixed error in how input fields check when they are current. (#1184) - Fixed drawImage to work correctly for method=fft when using photon_ops. (#1193) - Fixed the proxies used by config Input items to allow access to attributes. (#1195) - Add --log_format option to galsim executable. (#1201) - Allow input objects with has_nobj=True to return an approximate number of objects. (#1202) - Add options to InputLoader to make inputs with AtmosphericScreens work properly. (#1206) - Only use proxies for input objects if not yet in a multiprocessing context. (#1206) *New Features* - Added `BaseCorrelatedNoise.from_file` class method. (#731, #1174) - Added `GalaxySample` class. (#795, #1174) - Added methods `Image.transpose`, `Image.flip_ud`, `Image.flip_lr`, `Image.rot_cw`, `Image.rot_ccw`, and `Image.rot_180`. (#1139) - Exposed our Si, Ci, sinc, and gammainc functions from C++. (#1146) - Added pupil_u and pupil_v to `PhotonArray`. (#1147) - Added `Image.depixelize` and ``depixelize=True`` option for `InterpolatedImage`. (#1154) - Let `Bounds.expand` scale differently in different directions. (#1153, #1155) - Added `BaseWCS.shearToWorld` and `BaseWCS.shearToImage`. (#1158, #1172) - Added `PupilImageSampler` and `PupilAnnulusSampler` photon operators. (#1176) - Added `TimeSampler` photon operator. (#1178) - Added `BaseDeviate.as_numpy_generator`. (#1067, $1179) - Added ``timeout`` option to control multiprocessing timeout limit and increased the default. (#1180) *Performance Improvements* - Made Silicon sensor use ~half as many points for the pixels. (#1118, #1137) - Use single precision for Silicon pixel boundaries. (#1140) - Moved some of the logic related to the Silicon sensor to the python layer. (#1141) - Let `BaseDeviate.generate` use multiple threads in C++ layer. (#1177) *Bug Fixes* - Fixed some cases where HSM would fail to converge. (#1132, #1149) - Fixed error in `InterpolatedImage.withGSParams` not updating stepk and maxk. (#1154) - Fixed error in `ChromaticSum` photon shooting when ``n_photons`` is given. (#1156, #1157) - Fixed some rounding errors that could happen with integer-typed images. (#1160) - Fixed an assert error that would trigger if hsm was run on images with negative stride. (#1185) - Fix the flux scaling of drawReal for objects with non-diagonal jacobian. (#1197, #1198) v2.3 ---- *Dependency Changes* - Removed future as a dependency. (#1082) - Download eigen automatically if not found on your system. (#1086) *API Changes* - Deprecated the ``rng`` parameter of `WavelengthSampler` and `FRatioAngles`. (#540) - Deprecated ``withOrigin`` method for non-local WCS types. (#1073) - Updated numerical details of the `Kolmogorov` class. (#1084) - Changed ``galsim.wfirst`` module to ``galsim.roman``. (#1088) - Changed default ``ii_pad_factor`` for `PhaseScreenPSF`, `OpticalPSF` to 1.5. (#1089) - Deprecated the ``high_accuracy`` and ``approximate_struts`` parameters for the `galsim.roman.getPSF` function. (#1089) - Changed ``surface_ops`` parameter to `GSObject.drawImage` to ``photon_ops``. (#1093) - Added logger option to some config functions and methods. (#1095) - Deprecated ``galsim.integ.trapz`` and ``galsim.integ.midpt``. (#1098) - Changed the convention for the ``f`` array passed to the `LookupTable2D` constructor to be the transpose of what it was. (#1103) - Changed the behavior of `PhaseScreenPSF`, `OpticalPSF`, and `ChromaticOpticalPSF` by adding the kwarg ``fft_sign``. (#1104) - Changed `_InterpolatedImage` to not recenter the image to (0,0) as `InterpolatedImage` does. (#1151) *Config Updates* - Added ability to draw chromatic objects with config files. (#510) - Added demo12.yaml and demo13.yaml to the demo suite. (#510, #1121) - Fixed a issues with using a ``Current`` item before it was parsed. (#1083) - Added value-type-specific type names (e.g. ``Random_float``, etc.) (#1083) - Fixed a subtle issue in ``Eval`` string processing. (#1083) - Added ``photon_ops`` and ``sensor`` as options in the stamp processing. (#1093) - Removed the ``_nobjects_only`` mechanism from input objects. (#1095) - Allowed ``Eval`` fields to use any modules that are listed in the top-level ``modules`` field. (#1121) - Added Roman config types: ``RomanSCA``, ``RomanBandpass``, and ``RomanPSF``. (#1121) *New Features* - Added ``atRedshift`` method for `ChromaticObject`. (#510) - Added `galsim.utilities.pickle_shared` context. (#1057) - Added ``force_stepk`` option to `VonKarman`. (#1059) - Added `Refraction` and `FocusDepth` photon ops. (#1065, #1069) - Updated LSST sensor files to match new lab measurements and use improved Poisson code calculations. (#1077, #1081) - Added `GSObject.makePhot` method. (#1078) - Added individual kwargs syntax to `GSObject.withGSParams`. (#1089) - Added ``pupil_bin`` option to the `galsim.roman.getPSF` function. (#1089) - Added `FittedSIPWCS`. (#1092) - Extended `GSFitsWCS` to support -SIP distortions for non-TAN WCSs. (#1092) - Added ``wcs`` option to `galsim.roman.getPSF`. (#1094) - Added `Position.shear` method. (#1090) - Added `LookupTable.integrate`, `LookupTable.integrate_product`, and `galsim.trapz`. (#1098) - Added `galsim.integ.hankel` function. (#1099) - Added `galsim.bessel.jv_root` function. (#1099) - Added support for TPV WCS files with order > 3. (#1101) - Added `UserScreen` for arbitrary user-supplied phase screens (#1102) - Added `galsim.zernike.describe_zernike`. (#1104) - Added option to emit WCS warnings when reading a file via `galsim.fits.read`. (#1120) - Added ``area`` and ``exptime`` parameters to `COSMOSCatalog` constructor. (#1121) *Performance Improvements* - Implemented ``Transformation._drawReal`` and ``Transformation._drawKImage`` in python. (#934) - Sped up the draw routines for `InterpolatedImage`. (#935) - Improved the quality and speed of Roman PSFs. (#1089) - Sped up `GSFitsWCS` calculations for SIP and PV distorted WCSs. (#1092) - Various speed improvements in config processing. (#1095, #1098) - Sped up `SED.calculateFlux` and some other SED and Bandpass calculations. (#1098) - Sped up the Hankel transforms in several classes. (#1099) - Improved the accuracy of ``stepk`` for `Kolmogorov` profiles. (#1110) - Sped up Zernike arithmetic. (#1124) - Removed some overhead in some "leading underscore" methods. (#1126) *Bug Fixes* - Fixed `horner` and `horner2d` when inputs are complex. (#1054) - Fixed `VonKarman` integration to be more reliable. (#1058) - Fixed minor bug in repr of `OpticalPSF` class. (#1061) - Fixed bug in `RandomKnots` when multiplied by an SED. (#1064) - Fixed bug in `galsim.fits.writeMulti` not writing headers. (#1091) v2.2 ---- *Deprecated Features* - Deprecated ``galsim.correlatednoise._BaseCorrelatedNoise``. (#160) - Deprecated ``RandomWalk`` in favor of `RandomKnots`. (#977) - Deprecated the ``tol`` parameter of the various Interpolant classes. (#1038) *API Changes* - Removed functionality to store/reload WFIRST PSFs, and to get multiple WFIRST PSFs (#919) - Changed the function signature of StampBuilder.addNoise. (#1048) *Changes to Shared Files* - Added option to set the `galsim.meta_data.share_dir` via GALSIM_SHARE_DIR. (#1014) - Changed hosting of COSMOS catalog to `Zenodo `_ (#1033) *Config Updates* - Added some more customization hooks in the StampBuilder class. (#1048) - Added ``quick_skip``, ``obj_rng=False``, ``rng_index_key`` options. (#1048) *Documentation Updates* - Switched docs to `Sphinx `_. (#160) *New Features* - Added `FitsHeader.extend` method. Also, read_header option to `galsim.fits.read`. (#877) - Updated lots of WFIRST module to use Cycle 7 specifications. (#919) - Extended WFIRST aberrations to 22 Zernike coefficients and vary them across FOV. (#919) - Improved efficiency of drawing `RandomKnots` objects when transformed. (#977) - Added WFIRST fermi persistence model. (#992) - Added ``r0_500`` argument to VonKarman. (#1005) - Improved ability of `AtmosphericScreen` to use shared memory in multiprocessing context. (#1006) - Use OpenMP when appropriate in `SiliconSensor.accumulate` (#1008) - Added array versions of `BaseWCS.toWorld` and `BaseWCS.toImage`. (#1026) - Exposed some methods of `Interpolant` classes that had only been in the C++ layer. (#1038) - Added Zernike polynomial +, -, and * operators. (#1047) - Added Zernike polynomial properties .laplacian and .hessian. (#1047) - Added ``center`` option to the `GSObject.drawImage` method. (#1053) *Bug Fixes* - Fixed a couple places where negative fluxes were not working correctly. (#472) - Fixed FITS I/O to write out comments of header items properly. (#877) - Fixed error in the serialization of `RandomKnots` instances. (#977) - Fixed error in `PhaseScreenPSF` when aberrations has len=1. (#1006, #1029) - Fixed error in `BaseWCS.makeSkyImage` when crossing ra=0 line for some WCS classes. (#1030) - Fixed slight error in the realized flux of some profiles when using photon shooting. (#1036) - Fixed error in `Sersic` class when n is very, very close to 0.5. (#1041) v2.1 ---- *Deprecated Features* - Deprecated PhaseScreenPSF attributes img and finalized. (#990) - Deprecated GSParams items allowed_flux_variation, small_fraction_of_flux, and range_division_for_extreama. (#993) *New Features* - Added RandomWalk profile option. (#821) - Added spline as LookupTable2D interpolant. (#982) - Added ability to use an Interpolant in LookupTable and LookupTable2D. (#982) - Added option for faster grid interpolation of LookupTable2D. (#982) - Added offset and flux_ratio options to WCS.toWorld and toImage. (#993) *Bug Fixes* - Corrected the diffusion functional form in SiliconSensor. (#981) - Fixed a bug in the PhaseScreenPSF withGSParams function. (#990) - Fixed a seg fault bug when PoissonDeviate is given mean=0. (#996) - Fixed the galsim executable to work correctly when installed by SCons. - Fixed Convolve and Sum sometimes making unnecessary copies. - Fixed error when using non-int integer types as seed of BaseDeviate (#1009) - Fixed error in use of non-integer grid_spacing in PowerSpectrum (#1020) - Fixed FitsHeader to not unnecessarily read data of fits file. (#1024) - Switched to yaml.safe_load to avoid PyYAML v5.0 warnings (#1025) - Fixed cases where numpy objected to subtracting floats from ints. (#1025) v2.0 ---- *Installation Changes* - Now installable via pip or setup.py install. (#809) *Dependency Changes* - Officially no longer support Python 2.6 or 3.4. (#755) - No longer support pre-astropy versions of pyfits or astropy obj.flux, etc. (#904) - Deprecated ChromaticObject.obj. (#904) - Changed the objlist attribute of ChromaticSum and ChromaticConvolution to obj_list. (#904) - Deprecated OpticalScreen.coef_array. (#904) - Changed a number of GSObject methods to properties. (#904) - obj.stepK() -> obj.stepk - obj.maxK() -> obj.maxk - obj.nyquistScale() -> obj.nyquist_scale - obj.centroid() -> obj.centroid - obj.getPositiveFlux() -> obj.positive_flux - obj.getNegativeFlux() -> obj.negative_flux - obj.maxSB() -> obj.max_sb - obj.isAxisymmetric() -> obj.is_axisymmetric - obj.isAnalyticX() -> obj.is_analytic_x - obj.isAnalyticK() -> obj.is_analytic_k - obj.hasHardEdges() -> obj.has_hard_edges - Renamed ChromaticObject.centroid(bandpass) to calculateCentroid. (#904) - Changed a few Image methods to properties. (#904) - image.center() -> image.center - image.trueCenter() -> image.true_center - image.origin() -> image.origin *New Features* - Added DeltaFunction. (#533) - Added ChromaticRealGalaxy. (#640) - Added CovarianceSpectrum. (#640) - Added HST bandpasses covering AEGIS and CANDELS surveys (#640) - Added drawKImage method for ChromaticObject and CorrelatedNoise (#640) - Updated WFIRST WCS some other basic numbers to Cycle 7 design. (#675) - Added support for unsigned int Images. (#715) - Added a new Sensor class hierarchy, including SiliconSensor. (#722) - Added save_photons option to drawImage. (#722) - Added image.bin and image.subsample methods. (#722) - Added annular Zernike option for optical aberration coefficients. (#771) - Added ability to use numpy, np, or math in all places where we evaluate user input. (#776) - Added keywords exptime and area to drawImage(). (#789) - Added ability to use astropy.units for units of SEDs. (#789). - Added InclinedExponential and InclinedSersic. (#782, #811) - Added ability to select from a RealGalaxyCatalog or COSMOSCatalog using the 'weight' entries to account for selection effects. (#787) - Added complex Image dtypes (aka ImageCD and ImageCF). (#799, #873) - Added maxSB() method to GSObjects. (#799) - Added im[x,y] = value and value = im[x,y] syntax. (#799) - Added ability to do FFTs directly on images. (#799) - Added galsim.RandomWalk. (#819) - Added generate function to BaseDeviate and sed.sampleWavelength. (#822) - Added function assignPhotonAngles (#823) - Added geometric optics approximation for photon-shooting PhaseScreenPSFs. (#824) - Added gradient method to LookupTable2D. (#824) - Added surface_ops option to drawImage function. (#827) - Added ii_pad_factor kwarg to PhaseScreenPSF and OpticalPSF. (#835) - Added galsim.fft module. (#840) - Added a hook to the WCS classes to allow them to vary with color. (#865) - Added optional variance parameter to PowerSpectrum.buildGrid. (#865) - Added CelestialCoord.get_xyz() and CeletialCoord.from_xyz(). (#865) - Added an optional center argument for Angle.wrap(). (#865) - Added recenter option to drawKImage. (#873) - Added option to use circular weight function in HSM moments. (#917) *New config features* - Changed galsim.config.CalculateNoiseVar to CalculateNoiseVariance. (#820) - Setting config['rng'] is no longer required when manually running commands like galsim.config.BuildGSObject. (#820) - Allow PoissonNoise and CCDNoise without any sky level. (#820) - Let 'None' in the config file mean None. (#820) - Remove default value for 'max_extra_noise' for photon shooting. (#820) - Added --except_abort option to galsim executable. (#820) - Added optional probability parameter 'p' for Random bool values. (#820) - Added ability to specify world_pos in celestial coordinates. (#865) - Added the ability to have multiple rngs. (#865) - Added ngrid, center, variance, index options to power_spectrum input field. (#865) - Added skip option in stamp field. (#865) - Added ':field' syntax for templates. (#865) v1.4 ---- *API Changes* - Changed the galsim.Bandpass and galsim.SED classes to require formerly optional keywords wave_type and flux_type. (#745) *Dependency Changes* - Added future module as a dependency. (#534) - Changed PyYAML to a non-optional dependency. (#768) *Bug Fixes* - Improved ability of galsim.fits.read to handle invalid FITS headers. (#602) - Fixed bug in des module, building meds file with wcs from input images. (#654) - Fixed a bug in the way Images are instantiated for certain combinations of ChromaticObjects and image-setup keyword arguments (#683) - Added ability to manipulate the width of the moment-measuring weight function for the KSB shear estimation method of the galsim.hsm package. (#686) - Fixed an error in the CCDNoise.getVariance() function. (#713) - Fixed an assert failure in InterpolatedImage if image is all zeros. (#720) - Updated ups table file so that setup command is setup galsim. (#724) - Improved algorithm for thinning SEDs and Bandpasses. (#739) - Fixed a bug in how DistDeviate handles nearly flat pdfs. (#741) - Fixed a bug in chromatic parametric COSMOS galaxy models. (#745) - Fixed a bug in the Sum and Convolution constructors when list has only a single element. (#763) - Fixed a bug related to boost-v1.60 python shared_ptr registration. (#764) - Changed an assert in the HSM module to an exception. (#784) *Deprecated Features* - Deprecated the gal.type=Ring option in the config files. (#698) *New Features* - Added OutputCatalog class. (#301, #691) - Added methods calculateHLR, calculateMomentRadius, and calculateFWHM. (#308) - Added LookupTable2D. (#465) - Added support for Python 3. (#534) - Added AtmosphericScreen, OpticalScreen, and PhaseScreenList. (#549) - Added PhaseScreenPSF. (#549) - Added Atmosphere function. (#549) - Rewrote OpticalPSF using new PhaseScreen framework. (#549) - Extended OpticalPSF to handle arbitrary Zernike order. (#549) - Added a simple, linear model for persistence. (#554) - Added BoundsI.numpyShape(). (#654) - Enabled FITS files with unsigned integer to read as ImageI or ImageS. (#654) - Made COSMOSCatalog write an index parameter. (#654, #694) - Added ability to specify lambda and r0 separately for Kolmogorov. (#657) - Enabled initializing an InterpolatedImage from a user-specified HDU. (#660) - Changed galsim.fits.writeMulti to allow hdus in "image" list. (#691) - Added wcs argument to Image.resize(). (#691) - Added BaseDeviate.discard(n) and BaseDeviate.raw(). (#691) - Added sersic_prec option to COSMOSCatalog.makeGalaxy(). (#691) - Enabled image quality cuts in the COSMOSCatalog class. (#693) - Added convergence_threshold in HSMParams. (#709) - Improved the readability of Image and BaseDeviate reprs. (#723) - Sped up Bandpass, SED, and LookupTable classes. (#735) - Added the FourierSqrt operator. (#748) - Made Bandpass.thin() and truncate() preserve the zeropoint. (#711) - Added version information to the compiled C++ library. (#750) *Updates to galsim executable* - Dropped default verbosity from 2 to 1. (#691) - Added galsim -n njobs -j jobnum to split run into multiple jobs. (#691) - Added galsim -p to perform profiling on the run. (#691) *New config features* - Added ability to write truth catalogs using output.truth field. (#301, #691) - Improved the extensibility of the config parsing. (#691, #774) - Added the 'template' option. (#691) - Made '$' and '@' shorthand for Eval and Current. (#691) - Allowed gsobjects to be referenced from Current types. (#691) - Added x,f specification for a RandomDistribution. (#691) - Added a new 'stamp' top level field. (#691) - Added new stamp type=Ring to effect ring tests. (#698) v1.3 ---- *Installation Changes* - Require functionality in TMV 0.72. (#616) *API Changes* - Changed the name of the bounds.addBorder() method to withBorder. (#218) - Removed (from the python layer) Interpolant2d and InterpolantXY. (#218) - Removed the MultipleImage way of constructing an SBInterpolatedImage. (#218, #642) - Made the default tolerance for all Interpolants equal to 1.e-4.. (#218) - Deprecated the __rdiv__ operator from Bandpass and SED. (#218) - Made all returned matrices consistently use numpy.array, rather than numpy.matrix. (#218) - Made the classes PositionI, PositionD, GSParams, and HSMParams immutable. (#218, #643) - Deprecated CorrelatedNoise.calculateCovarianceMatrix. (#630) - Officially deprecated the methods and functions that had been described as having been removed or changed to a different name. (#643) - Added function to interleave a set of dithered images into a single higher-resolution image. (#666) *New Features* - Made all GalSim objects picklable unless they use fundamentally unpicklable things such as lambda expressions, improved str and repr representations, made __eq__, __ne__, and __hash__ work better. (#218) - Added ability to set the zeropoint of a bandpass to a numeric value on construction. (#218) - Added ability to set the redshift of an SED on construction. (#218) - Updated CorrelatedNoise to work with images that have a non-trivial WCS. (#501) - Added new methods of the image class to simulate detector effects (#555, #558). - Enabled constructing a FitsHeader object from a dict, and allow FitsHeader to be default constructed with no keys. (#590) - Added a module, galsim.wfirst, that includes information about the planned WFIRST mission, along with helper routines for constructing appropriate PSFs, bandpasses, WCS, etc. (#590) - Added native support for the TAN-SIP WCS type using GSFitsWCS. (#590) - Added a helper program, galsim_download_cosmos, that downloads the COSMOS RealGalaxy catalog. (#590) - Added new class with methods for making realistic galaxy samples using COSMOS: the COSMOSCatalog class and its method makeObj(). (#590 / #635). - Added information about PSF to the data returned by EstimateShear(). (#612) - Added Spergel(2010) profile GSObject (#616). - Added an option to the ChromaticObject class that allows for faster image rendering via interpolation between stored images. (#618) - Added new ChromaticAiry and ChromaticOpticalPSF classes for representing chromatic optical PSFs. (#618) - Enable initializing a DES_PSFEx object using a pyfits HDU directly instead of a filename. (#626) - Added TopHat class implementing a circular tophat profile. (#639) - Added ability of Noise objects to take a new random number generator (a BaseDeviate instance) when being copied. (#643) - Added InterpolatedKImage GSObject for constructing a surface brightness profile out of samples of its Fourier transform. (#642) - Enabled constructing a FitsHeader object from a list of (key, value) pairs, which preserves the order of the items in the header. (#672) *Bug Fixes and Improvements* - Fixed a bug in the normalization of SEDs that use wave_type='A'. (#218) - Switched the sign of the angle returned by CelestialCoord.angleBetween. (#590) - Fixed a bug in UncorrelatedNoise where the variance was set incorrectly. (#630) - Changed the implementation of drawing Box and Pixel profiles in real space (i.e. without being convolved by anything) to actually draw the surface brightness at the center of each pixel. (#639) - Fixed a bug where InterpolatedImage and Box profiles were not correctly rendered when transformed by something that includes a flip. (#645) - Fixed a bug in rendering profiles that involve two separate shifts. (#645) - Fixed a bug if drawImage was given odd nx, ny parameters, the drawn profile was not correctly centered in the image. (#645) - Added intermediate results cache to ChromaticObject.drawImage and ChromaticConvolution.drawImage to speed up the rendering of groups of similar (same SED, same Bandpass, same PSF) chromatic profiles. (#670) *Updates to config options* - Added COSMOSGalaxy type, with corresponding cosmos_catalog input type. (#590) - Added Spergel type. (#616) - Added lam, diam, scale_units options to Airy and OpticalPSF types. (#618) - Added TopHat type. (#639) v1.2 ---- *New Features* - Changed name of noise whitening routine from noise.applyWhiteningTo(image) to image.whitenNoise(noise). (#529) - Added image.symmetrizeNoise. (#529) - Added magnitudes as a method to set the flux of SED objects. (#547) - Added SED.calculateDCRMomentShifts, SED.calculateChromaticSeeingRatio. (#547) - Added image.applyNonlinearity and image.addReciprocityFaiure. (#552) - Renamed alias_threshold to folding_threshold. (#562) - Extended to the rotate, shear, and transform methods of ChromaticObject the ability to take functions of wavelength for the arguments. (#581) - Added cdmodel module to describe charge deflection in CCD pixels. (#524) - Added pupil_plane_im option to OpticalPSF. (#601) - Added nx, ny, and bounds keywords to drawImage() and drawKImage() methods. (#603) *Bug Fixes and Improvements* - Improved efficiency of noise generation by correlated noise models. (#563) - Modified BoundsI and PositionI initialization to ensure that integer elements in NumPy arrays with dtype==int are handled without error. (#486) - Changed the default seed used for Deviate objects when no seed is given to use /dev/urandom if it is available. (#537) - Changed SED and Bandpass methods to preserve type when returning a new object when possible. (#547) - Made file_name argument to CorrelatedNoise.getCOSMOSNoise() be able to have a default value in the repo. (#548) - Fixed the dtype= kwarg of Image constructor on some platforms. (#571) - Added workaround for bug in pyfits 3.0 in galsim.fits.read. (#572) - Fixed a bug in the Image constructor when passed a NumPy array with the opposite byteorder as the system native one. (#594) - Fixed bug that prevented calling LookupTables on non-square 2d arrays. (#599) - Updated the code to account for a planned change in NumPy 1.9. (#604) - Fixed a bug where the dtype of an Image could change when resizing. (#604) - Defined a hidden __version__ attribute according to PEP 8 standards. (#610) *Updates to config options* - Moved noise whitening option from being an attribute of the RealGalaxy class, to being a part of the description of the noise. (#529) - Added RandomPoisson, RandomBinomial, RandomWeibull, RandomGamma, and RandomChi2 random number generators. (#537) v1.1 ---- *Non-backward-compatible API changes* - Changed Pixel to take a single scale parameter. (#364) - Added new Box class. (#364) - Changed Angle.wrap() to return the wrapped angle. (#364) - Changed Bounds methods addBorder, shift, and expand to return new Bounds objects. (#364) - Merged the GSParams parameters shoot_relerr and shoot_abserr into the parameters integration_relerr and integration_abserr. (#535) *Other changes to the API* - Changed the name of the dx parameter in various places to scale. (#364) - Combined the old Image, ImageView and ConstImageView arrays of class names into a single python layer Image class. (#364) - Changed the methods createSheared, createRotated, etc. to more succinct names shear, rotate, etc. (#511) - Changed the setFlux and scaleFlux methods to return new objects. (#511) - Changed the Shapelet.fitImage method to FitShapelet (#511) - Changed the nyquistDx method to nyquistScale. (#511) - Moved as many classes as possible toward an immutable design. (#511) - Combined the draw and drawShoot methods into a single drawImage method with more options about how the profile should be rendered. (#535) - Changed the name of drawK to drawKImage. (#535) *New Features* - Added new set of WCS classes. (#364) - Added CelestialCoord class to represent (ra,dec) coordinates. (#364) - Added Bandpass, SED, and ChromaticObject classes. (#467) - Added aberrations parameter of OpticalPSF. (#409) - Added max_size parameter to OpticalPSF. (#478) - Added text_file parameter to FitsHeader and FitsWCS. (#508) - Modified addNoiseSNR() method to return the added variance. (#526) - Added dtype option to drawImage and drawKImage. (#526) *Bug fixes and improvements* - Sped up the gzip and bzip2 I/O. (#344) - Fixed some bugs in the treatment of correlated noise. (#526, #528) *Updates to config options* - Added more options for image.wcs field. (#364) - Changed the name of sky_pos to world_pos. (#364) - Removed pix top layer in config structure. Add draw_method=no_pixel to do what pix : None used to do. (#364) - Added draw_method=real_space to try to use real-space convolution. (#364) - Added ability to index Sequence types by any running index. (#364, #536) - Added Sum type for value types for which it makes sense. (#457) - Allowed modification of config parameters from the command line. (#479) - Added image.retry_failures. (#482) - Added output.retry_io item to retry failed write commands. (#482) - Changed the default sequence indexing for most things to be 'obj_num_in_file' rather than 'obj_num'. (#487) - Added draw_method=sb. (#535) - Changed the output.psf.real_space option to output.psf.draw_method and allow all of the options that exist for image.draw_method. (#535) - Added an index item for Ring objects. (#536) v1.0 ---- *Notable bug fixes and improvements* - Fixed bug in the rendering of shifted images. (#424) - Improved the fidelity of the Lanczos conserve_dc=True option. (#442) - Switched default interpolant for RealGalaxy to Quintic, since it was found to be more accurate in general. (#442) - Fixed a bug in InterpolatedImage calculateStepK function. (#454) - Fixed a bug in Image class resize function. (#461) - Sped up OpticalPSF and RealGalaxy significantly. (#466, #474) - Fixed a bug in the fourier rendering of truncated Sersic profiles. (#470) - Fixed some bugs in the config machinery when files have varying numbers of objects. (#487) - Support astropy.io.fits in lieu of stand-alone pyfits module. (#488) - Fixed a bug in config where 'safe' objects were not being correctly invalidated when a new input item should have invalidated them. - Fixed a bug in the drawing of a Pixel all by itself. (#497) *New features* - Added galsim executable (instead of galsim_yaml, galsim_json). (#460) - Updated the allowed range for Sersic n to 0.3 -- 6.2. (#325) - Made RealGalaxy objects keep track of their (correlated) noise. (#430) - Changed noise padding options for RealGalaxy and InterpolatedImage. (#430) - Added VariableGaussianNoise class. (#430) - Added offset parameter to both draw and drawShoot. (#439) - Changed the name of InputCatalog to just Catalog. (#449) - Added Dict class. (#449) - Added MEDS file output to des module. (#376) - Removed des module from default imports of GalSim. Now need to import galsim.des explicitly or load with galsim -m des ... (#460) *Updates to config options* - Added RealGalaxyOriginal galaxy type. (#389) - Added whiten option for RealGalaxy objects. (#430) - Added Current type. (#430) - Added offset option in image field. (#449) - Added the ability to have multiple input catalogs, dicts, etc. (#449) - Added signal_to_noise option for PSFs when there is no galaxy. (#459) - Added output.skip and output.noclobber options. (#474) v0.5 ---- *New features* - Added Shapelet class. (#350) - Added ability to truncate Sersic profiles. (#388) - Added trefoil and struts to OpticalPSF. (#302, #390) - Updates to lensing engine: - Added document describing how lensing engine code works. (#248) - Added ability to draw (gamma,kappa) from same power spectrum. (#304) - Added kmin_factor and kmax_factor parameters to buildGrid. (#377) - Added PowerSpectrumEstimator class in pse module. (#382) - Added GSParams (#343, #426) and HSMParams (#365) classes. - Added des module and example scripts. (#350) - Added applyWhiteningTo method to CorrelatedNoise class. (#352) - Changed the default centering convention for even-sized images to be in the actual center, rather than 1/2 pixel off-center. (#380) - Enabled InputCatalog to read FITS catalogs. (#350) - Added FitsHeader class and config option. (#350) - Added the ability to read/write to a specific HDU. (#350) - Add new function galsim.fits.writeFile. (#417) - Added LINKFLAGS SCons option. (#380) *Updates to config* - Added index_convention option. (#380) - Changed the name of the center item for the Scattered image type to image_pos, and added a new sky_pos item. (#380) *Bug fixes* - Fix some errors related to writing to an HDUList. (#417) - Fixed ringing when Sersic objectss were drawn with FFTs. (#426) - Fixed bugs in obj.drawK() function. (#407) - Fixed bugs with InterpolatedImage objects. (#389, #432) - Fixed bug in draw routine for shifted objects. (#380) - Fixed bug in the generation of correlated noise fields. (#352) v0.4 ---- - Added ability to pad images for InterpolatedImage or RealGalaxy with either correlated or uncorrelated noise. (#238) - Added python-level LookupTable class which wraps the existing C++ Table class. (#305) - Lensing engine updates: (#305) - Added the option of drawing shears from a tabulated P(k) - Added ability to handle conversions between different angular units. - Fixed an important bug in the normalization of the generated shears. - Added a DistDeviate class. (#306) - Added galsim.correlatednoise.get_COSMOS_CorrFunc(...). (#345) - Added im.addNoiseSNR(). (#349) - Made a new Noise hierarchy for CCDNoise (no longer a BaseDeviate), GaussianNoise, PoissonNoise, DeviateNoise. (#349) v0.3 ---- - Fixed several bugs in the Sersic class that had been causing ringing. (#319, #330) - Added support for reading and writing compressed fits files. (#299) - Added InterpolatedImage class to wrap existing C++ level SBInterpolatedImage. (#333) - Added a new class structure for representing 2D correlation functions, used to describe correlated noise in images. (#297). - Add FormattedStr option for string values in config files. (#315) - Added obj.drawK() to the python layer. (#319) - Fixed several sources of memory leaks. (#327) - Updated the moments and PSF correction code to use the Image class and TMV; to handle weight and bad pixel maps for the input Images; and to run ~2-3 times faster. (#331, #332) - Fixed bug in config RandomCircle when using inner_radius option. v0.2 ---- - Significant revamping and commenting of demos, including both python and config versions (#243, #285, #289). - Added python-level int1d function to wrap C++-level integrator, which allowed us to remove our dependency on scipy. (#288) - Significant expansion in config functionality, using YAML/JSON format config files (#291, #295). - Fixed some bugs in Image handling (including bugs related to duplicate numpy.int32 types), and made Image handling generally more robust (#293, #294). - Fixed bug in wrapping of angles (now not automatic -- use wrap() explicitly). v0.1 ---- Initial version of GalSim with most of the basic functionality.