Skip to content

Latest commit

 

History

History
189 lines (133 loc) · 7.68 KB

releases.rst

File metadata and controls

189 lines (133 loc) · 7.68 KB

Release notes

These notes document the changes between individual GLASS releases.

2024.1 (16 Jul 2024)

  • Further changes to the :func:`~glass.shells.partition()` function.
    • The output of partition() now has the shells axis as its first. This means that the new output is the transpose of the previous output.
    • A new partition(..., method="nnls") method that computes a partition with non-negative contributions for each shell. This is now the default. The "nnls" method works much better than "lstsq" since it does not introduce small negative densities, and should almost always be preferred.
    • Both partition(method="nnls") and partition(method="lstsq") now have an additional integral constraint so that the sum of the partition recovers the integral of the input function.
    • The partition() function now works correctly with functions having extra axes.
  • A new function :func:`~glass.shells.combine()` that evaluates the linear combination of radial window functions with given weights. This function is the inverse of :func:`~glass.shells.partition()` and can be used to obtain the effect of the discretisation on, e.g., a redshift distribution.
  • There is now a way to compute the effective angular power spectra that can be expected from a GLASS simulation, including all discretisations and approximations.
  • A new function :func:`~glass.galaxies.redshifts()` to sample redshifts following a radial window function. This should always be preferred to the existing :func:`~glass.galaxies.redshifts_from_nz()` function, since the redshift distribution entering the two-point statistics is in fact fixed by the window functions.

2023.7 (1 Aug 2023)

  • New radial window functions :func:`~glass.shells.linear_windows()` and :func:`~glass.shells.cubic_windows()`, which correspond to linear and cubic spline interpolation of radial functions, respectively. These are overlapping window functions, and it has been difficult to obtain accurate matter power spectra so far.

  • The :func:`~glass.shells.partition()` function now returns an array of weights to approximate a given function by the window functions. This is necessary to obtain an accurate fit of redshift distributions by overlapping window functions. For example, to get the array of galaxy densities in each shells from dndz, one would now do:

    ngal = partition(z, dndz, shells)
    
  • A new function :func:`~glass.fields.getcl()` was added to return angular power spectra by index from a list using GLASS ordering.

  • The :func:`~glass.galaxies.gaussian_phz()` function now accepts bounds using lower= and upper= keyword parameters.

2023.6 (30 Jun 2023)

2023.5 (31 May 2023)

  • The point sampling functions in :mod:`glass.points` now 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 :func:`glass.galaxies.redshifts_from_nz` now supports array input for the counts argument. It accepts e.g. the number of galaxies returned by the position sampling.
  • The profiling functionality in :mod:`glass.user` was removed in favour of external packages.

2023.2 (1 Mar 2023)

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.