Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
glass 2023.6 (30 Jun 2023)
There is some support for simulating the deflections due to weak gravitational lensing:
The
deflect()
function applies deflections to positions.The
from_convergence()
function returns one or more other lensing fields given the convergence.The
shear_from_convergence()
function is deprecated in favour offrom_convergence()
.The
glass
module is no longer a namespace package. The newglass.ext
namespace is reserved for extensions instead. This is done to follow best practices, so that a bad extension can no longer break all of GLASS by mistake. Theglass.all
meta-module is no longer necessary.The point sampling functions
positions_from_delta()
anduniform_positions()
now return an iterator over points. This has lead to orders-of-magnitude improvements in memory use and performance when simulating galaxies at Euclid/LSST densities.The ellipticity sampling functions
ellipticity_gaussian()
andellipticity_intnorm()
accept array inputs.A bug causing incorrect results from
effective_bias()
has been fixed.