py21cmfast.outputs.LightCone¶
- class py21cmfast.outputs.LightCone(redshift, distances, user_params, cosmo_params, astro_params, flag_options, random_seed, lightcones, node_redshifts=None, global_quantities=None, photon_nonconservation_data=None, cache_files: dict | None = None, _globals=None, log10_mturnovers=None, log10_mturnovers_mini=None, current_redshift=None, current_index=None)[source]¶
A full Lightcone with all associated evolved data.
Methods
__init__
(redshift, distances, user_params, ...)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.
Generate a unique hash filename for this instance.
make_checkpoint
(fname, index, redshift)Write updated lightcone data to file.
read
(fname[, direc])Read a lightcone file from disk, creating a LightCone object.
save
([fname, direc, clobber])Save to disk.
Attributes
Cell size [Mpc] of the lightcone voxels.
Global neutral fraction function.
Co-ordinates [Mpc] of each slice along the redshift axis.
Lightcone size over each dimension -- tuple of (x,y,z) in Mpc.
Redshift of each cell along the redshift axis.
Number of redshift slices in the lightcone.
Shape of the lightcone as a 3-tuple.