write_xstable_model

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

Write a XSPEC table model to disk.

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

  • hdus (BlockList) – 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.