_read_pha#

sunkit_spex.fitting_legacy.io._read_pha(file)[source]#

Read a .pha file and extract useful information from it.

Parameters:

file (str, file-like or pathlib.Path) – A .pha file (see open for details).

Returns:

The channel numbers, counts, and the livetime for the observation.

Return type:

tuple