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.

get_unique_filename()

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

Cell size [Mpc] of the lightcone voxels.

global_xHI

Global neutral fraction function.

lightcone_coords

Co-ordinates [Mpc] of each slice along the redshift axis.

lightcone_dimensions

Lightcone size over each dimension -- tuple of (x,y,z) in Mpc.

lightcone_redshifts

Redshift of each cell along the redshift axis.

n_slices

Number of redshift slices in the lightcone.

shape

Shape of the lightcone as a 3-tuple.