diff options
Diffstat (limited to 'astro/suzaku')
-rwxr-xr-x | astro/suzaku/make_photon_list.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astro/suzaku/make_photon_list.py b/astro/suzaku/make_photon_list.py index d8fe679..8ffe7a9 100755 --- a/astro/suzaku/make_photon_list.py +++ b/astro/suzaku/make_photon_list.py @@ -355,7 +355,7 @@ def main(): header_out.add_history(" ".join(sys.argv)) logger.info("Creating photons table ...") photons = np.row_stack(photonlist) - photons.sort(axis=0) # sort by time in place + photons = photons[photons[:, 0].argsort()] # sort by time (1st column) hdu = fits.BinTableHDU.from_columns([ fits.Column(name="PHOTON_TIME", format="D", unit="s", array=photons[:, 0]), |