py21cmfast.outputs.IonizedBox.write¶
- IonizedBox.write(direc=None, fname: ~typing.Union[str, ~pathlib.Path, None, <MagicMock id='140644178572208'>, <MagicMock id='140644178576208'>] = 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.