py21cmfast.outputs.LightCone.get_cached_data

LightCone.get_cached_data(kind: str, redshift: float, load_data: bool = False) _OutputStruct

Return an OutputStruct object which was cached in creating this Coeval box.

Parameters:
  • kind – The kind of object: “init”, “perturb”, “spin_temp”, “ionize” or “brightness”

  • redshift – The (approximate) redshift of the object to return.

  • load_data – Whether to actually read the field data of the object in (call obj.read() after this function to do this manually)

Returns:

output – The output struct object.