py21cmfast.outputs.PerturbedField.write¶
- PerturbedField.write(direc=None, fname: str | ~pathlib._local.Path | None | <MagicMock id='130663707076528'> | <MagicMock id='130663707076864'> = None, write_inputs=True, mode='w')¶
Write the struct in standard HDF5 format.
- Parameters:
direc (str, optional) – The directory in which to write the boxes. By default, this is the centrally-managed directory, given by the
config.yml
in~/.21cmfast/
.fname (str, optional) – The filename to write to. By default creates a unique filename from the hash.
write_inputs (bool, optional) – Whether to write the inputs to the file. Can be useful to set to False if the input file already exists and has parts already written.