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.

get_unique_filename()

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

Astro params shared by all datasets.

cosmo_params

Cosmo params shared by all datasets.

flag_options

Flag Options shared by all datasets.

random_seed

Random seed shared by all datasets.

user_params

User params shared by all datasets.