spacetelescope / stistools

Tools for HST/STIS.
http://stistools.readthedocs.io/en/latest/
Other
5 stars 23 forks source link

Don't assume inttag input is time-sorted #118

Open sean-lockwood opened 4 years ago

sean-lockwood commented 4 years ago

Update inttag to not assume TAG events are sorted in time-order. This is helpful when users are manually splicing together multiple tag files.

E.g., when allevents=True, use .min() and .max() instead of [0] and [-1]: https://github.com/spacetelescope/stistools/blob/master/stistools/inttag.py#L110