esheldon / fitsio

A python package for FITS input/output wrapping cfitsio
GNU General Public License v2.0
134 stars 58 forks source link

Return requested row order rather than sorted #367

Closed esheldon closed 1 year ago

esheldon commented 1 year ago

Currently we always return rows in sorted order rather than requested order.

E.g. rows=[5, 2, 1] would return in order [1, 2, 5]

Fix this to return in the users requested order.

also support duplicates in the requested list rather than use unique. This is not a performance problem because cfitsio uses cacheing