Release notes#
These notes document the changes between individual GLASS releases.
2023.5 (31 May 2023)#
The point sampling functions in
glass.pointsnow accept extra dimensions, and will broadcast leading axes across their inputs. They also return an additional scalar or array with the counts of sampled galaxies.The redshift sampling function
glass.galaxies.redshifts_from_nz()now supports array input for thecountsargument. It accepts e.g. the number of galaxies returned by the position sampling.The profiling functionality in
glass.userwas removed in favour of external packages.
2023.2 (1 Mar 2023)#
New user functions
glass.user.save_cls()andglass.user.load_cls()to save and load angular power spectra in the GLASS format.Some type hints were added to library functions. These are mostly perfunctory at this time, but there is interest in adding proper typing support in the future, including use of the Array API.
The
glass.mattermodule was removed in favour of the more appropriately-namedglass.shellsmodule for shell definitions.Instead of using an array of shell boundaries and separate
MatterWeights, shells are now entirely defined by aglass.shells.RadialWindowwindow function.Many functions have an improved interface thanks to the previous point:
The
glass.math.restrict_intervalfunction has been replaced byglass.shells.restrict(), as shells are now defined by window functions instead of sharp intervals.The
glass.points.effective_bias()function now takes a window function as input and computes its effective bias parameter.The
glass.galaxies.constant_densitiesanddensity_from_dndzfunctions have been removed, since densities can now easily be partitioned by window functions usingglass.shells.restrict()andglass.shells.partition().The
zminandzmaxparameters of glass.galaxies.redshifts_from_nz have been removed for the same reason.The
glass.lensing.multi_plane_weightsfunction, which computed all lensing weights at once, is replaced by theadd_windowmethod ofglass.lensing.MultiPlaneConvergence, which adds a convergence plane given by aRadialWindowat its effective redshift.The
glass.lensing.multi_plane_matrix()function now takes a sequence ofRadialWindow. It no longer returns the list of source redshifts, since these are now independently available as the effective redshifts of the windows.
The arguments of the
MultiPlaneConvergencemethodadd_planehave been renamed tozsrcandwlensfrom the more ambiguouszandw(which could be confused with “window”). The propertieszandwthat returned these values have been similarly changed.
2023.1 (31 Jan 2023)#
Initial wide release for GLASS paper
This was the initial full release of GLASS, coinciding with the release of preprint arXiv:2302.01942.