Repository navigation
Releases: jfcrenshaw/lbg_tools
Releases · jfcrenshaw/lbg_tools
Release list
v1.7.0
Highlights
Lyman-break bias now depends on the magnitude limit, not just redshift, and the
interloper bias is an input rather than a formula. Both change numerical output.
TomographicBin construction is also ~11× faster.
Changed — affects results
- LBG bias is now
b(m, z), eq. 2.7 of Wilson & White 2019,
replacing the redshift-only power law0.28 (1+z)^1.6. That relation gave the same
bias to samples 2 magnitudes apart in depth. For an LSST-like ten-year dropout
selection the effective bias moves by factors of 1.4, 0.8 and 1.2 for u, g and r. - Interloper bias is the new
b_interlopersargument, constant, default 1.5.
It was previously the LBG power law evaluated at low redshift. stretchno longer moves the mean. It pivoted on the midpoint of the redshift
grid rather than the mean of the distribution, so a 10% stretch also shifted the
mean by ~0.005. It now scales the width and nothing else.mag_biasuses a central difference, with the step exposed asdm_mag_bias.mag_cutandm5_detmust be scalars. Arrays previously failed with a numpy
broadcast error from inside the integrals; they now raise immediately.- A shift that pushes every interloper below zero redshift raises.
table0onCompletenessis now the table as read. Conditioning ran in place, so
it had been the conditioned table despite its name.
Added
lbg_bias(mag_cut, z), usable without building a bin. Warns outside24 < m < 25.5,
the depths Wilson & White fit, and if the relation returns non-positive bias.z_lbg,nz_lbg,z_interlopers,nz_interlopersonTomographicBin.nz
concatenates the two populations across an empty gap, so integrating it directly
is wrong; integrate the halves.b_interlopersanddm_mag_biasarguments and properties.
Performance
- Completeness tables are loaded and conditioned once per band and shared. Depth
enters completeness only asm - m5_det, so every depth and cut of a band shares
one table.TomographicBinconstruction: 13.4 ms → 1.2 ms. mag_biasis computed once per bin instead of on every access.
v1.6.0
New features:
- Added additional photo-z nuisance parameters, such as stretch, and shift and stretch for interlopers.
v1.5.0
New features:
- You can now specify the cosmology object used for luminosity distance and differential comoving volume calculations. You can specify cosmologies using either Astropy or CCL cosmology objects. If you wish to use CCL objects, however, you will need to install CCL yourself, as it does not come packaged with
lbg_tools
v1.4.1
This release contains no code changes. It exists solely to trigger a deposit on Zenodo.
v1.4.0
New features:
- You can now provide additional parameters to the
Completenessconstructor insideTomographicBin
v1.3.0
New features:
- Added ability to scale IGM optical depth
v1.2.0
New features:
- More control over how
Completenesshandles extrapolation - Real-time validation that
Completenessextrapolates properly at the deep end.
v1.1.1
Bug fixes:
- Fixed
mag_biascalculation inTomographicBinwhenf_interlopersordzis non-zero.
v1.1.0
New features:
- Two IGM models, using formulae from Inoue 2014 and Madau
BandpassandSEDclasses, enabling LBG SED modeling and calculating/setting apparent magnitudes in different bandpasses- Low-redshift interloper and n(z)-shift parameters added to TomographicBin class
Bug fixes:
- Fixed typo in luminosity function exponents. New LF has lower number densities.
Breaking changes
- Renamed
DataDirectoryanddatatoLibraryandlibrary, respectively. This is minor and not many others are using this code yet, so I decided not to bump the major version number.