py21cmfast.outputs.Coeval¶
- class py21cmfast.outputs.Coeval(redshift: float, initial_conditions: InitialConditions, perturbed_field: PerturbedField, ionized_box: IonizedBox, brightness_temp: BrightnessTemp, ts_box: Optional[TsBox] = None, cache_files: Optional[dict] = None, photon_nonconservation_data=None, _globals=None)[source]¶
A full coeval box with all associated data.
Methods
__init__
(redshift, initial_conditions, ...)gather
([fname, kinds, clean, direc])Gather the cached data associated with this object into its file.
get_cached_data
(kind, redshift[, load_data])Return an OutputStruct object which was cached in creating this Coeval box.
get_fields
([spin_temp])Obtain a list of name of simulation boxes saved in the Coeval object.
Generate a unique hash filename for this instance.
read
(fname[, direc])Read a lightcone file from disk, creating a LightCone object.
save
([fname, direc])Save to disk.
Attributes
Astro params shared by all datasets.
Cosmo params shared by all datasets.
Flag Options shared by all datasets.
Random seed shared by all datasets.
User params shared by all datasets.