This fixes problem reported in CXC hd ticket 25247.
The tgcat PHA2 files don't always have background spectra. The script handles this case mostly ok, but is failing when it tries to .sort() a list with all Nones. Not sure if this a change in python behavior, but trivial to fix. (Only sort if values are not None).
This fixes problem reported in CXC hd ticket 25247.
The tgcat PHA2 files don't always have background spectra. The script handles this case mostly ok, but is failing when it tries to .sort() a list with all
None
s. Not sure if this a change in python behavior, but trivial to fix. (Only sort if values are notNone
).