Open astrofle opened 2 months ago
I also ran into this in the nodding testing. It cause the results of getps() to be not matching that of the original data.
The solution would probably be to create a new column that's the original row number, than selections may mess this up, but sorting the table by the row number would fix this problem. At a cost of keeping two copies in memory?
I think I fixed this in the nodding2 branch, as said. A simple rows.sort() was needed after the rows to be written were assembled.
There is already a row number column added in construction.
but the row number is not global, they seem to go by fits file in a multi-fits object. haven't checked for multi-hdu
Describe the bug When writing a subset of an SDFITS file the order of the scans should be preserved. It was not for one of the output files.
How to Reproduce
The scan order is: 8,1,2,7.
For the first file written, the scan order is fine.
Environment