py21cmfast.wrapper.configure_redshift

py21cmfast.wrapper.configure_redshift(redshift, *structs)[source]

Check and obtain a redshift from given default and structs.

Parameters:
  • redshift (float) – The default redshift to use

  • structs (list of OutputStruct) – A number of output datasets from which to find the redshift.

Raises:

ValueError : – If both redshift and all structs have a value of None, or if any of them are different from each other (and not None).