write_xstable_model

sherpa.astro.io.xstable.write_xstable_model(filename: str, hdus: list[TableHDU], clobber: bool = False) None[source] [edit on github]

Write a XSPEC table model to disk.

Parameters:
  • filename (str) – The filename to create.

  • hdus (list of TableHDU) – The output of make_xstable_model.

  • clobber (bool, optional) – If True then the output file will be over-written if it already exists, otherwise an error is raised.