_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
orpathlib.Path
) – A .pha file (seeopen
for details).- Returns:
The channel numbers, counts, and the livetime for the observation.
- Return type: