SciPy

darkhistory.physics.get_optical_depth

darkhistory.physics.get_optical_depth(rs_vec, xe_vec)

Computes the optical depth given an ionization history.

Parameters:
rs_vecndarray

Redshift (1+z).

xe_vecndarray

Free electron fraction xe = ne/nH.

Returns:
float

The optical depth.