zkbt / chromatic

Tools for visualizing spectrosopic light curves, with flux as a function of wavelength and time.
MIT License
14 stars 4 forks source link

fix x1dints reader to better handle having only some segments available #247

Closed zkbt closed 2 months ago

zkbt commented 2 months ago

In addressing #242 , this updates the from_x1dints reader to do a better job loading x1dints files that have been split into multiple segments, even if some segments are missing. In most cases, it should offer a warning if it can detect that some segment files are missing.

zkbt commented 2 months ago

OK, I actually found a previous warning that I had put in that should cover the case of the last segment(s) being missing, so I'm slightly more confident that warnings will be raised when needed if not all segments are included.