Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed May 17, 2021
1 parent e83e147 commit 921cf17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stingray/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,9 @@ def load_events_and_gtis(

hdulist = pf.open(fits_file)
probe_header = hdulist[0].header
# Let's look for TELESCOP here. This is the most common keyword to be
# found in well-behaved headers. If it is not in header 0, I take this key
# and the remaining information from header 1.
if "TELESCOP" not in probe_header:
probe_header = hdulist[1].header
mission_key = "MISSION"
Expand Down

0 comments on commit 921cf17

Please sign in to comment.