est.core.io.write_xas.write_xas#
- est.core.io.write_xas.write_xas(output_file: str, xas_obj: dict | XASObject, overwrite: bool = True, output_group_template: str = '1.{}', output_group_start_index: int = 1) List[str][source]#
Save XAS object in HDF5, one group per spectrum.
- Parameters:
output_file – HDF5 file name
xas_obj – XAS object with data and results to save.
overwrite – overwrite existing HDF5 content.
output_group_template – HDF5 group name can have a placeholder “{}” for the spectrum index.
output_group_start_index – Start spectrum index to be used in output_group_template.