Closed matteobachetti closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.43%. Comparing base (
e4e477c
) to head (775ec31
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Our methods to read event lists from FITS files make choices about what information to read in the file. This is done by specifying "ogip" as the format.
When fmt="fits"
, we read FITS files with Astropy's default reader (so, no interpretation on what an EventList should contain on our side), and everything gets read, including the header keyword EXPOSURE. Then, our code tries to update the exposure
attribute of EventList, which is instead calculated internally in StingrayTimeseries
, through a special method called a property, and fails. This PR just avoids this failure and warns the user that that keyword is not being saved.
Resolve #813