py21cmfast.outputs.LightCone.read

classmethod LightCone.read(fname, direc='.')

Read a lightcone file from disk, creating a LightCone object.

Parameters:
  • fname (str) – The filename path. Can be absolute or relative.

  • direc (str) – If fname, is relative, the directory in which to find the file. By default, both the current directory and default cache and the will be searched, in that order.

Returns:

LightCone – A LightCone instance created from the file’s data.