read_pha, use_errors=False, use_background=False)[source] [edit on github]

Create a DataPHA object.

  • arg – The name of the file or a representation of the file (the type depends on the I/O backend) containing the PHA data.

  • use_errors (bool, optional) – If the PHA file contains statistical error values for the count (or count rate) column, should it be read in. This defaults to False.

  • use_background (bool, optional) – Should the background PHA data (and optional responses) also be read in and associated with the data set?



Return type