Skip to content

Commit

Permalink
Add logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Mar 13, 2024
1 parent 3230b2c commit ed5deac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stingray/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,12 @@ def load_events_and_gtis(
else:
try:
returns.energy_list = rough_calibration(cal_pi, mission)
logger.info(
f"A default calibration was applied to the {mission} data. "
"Use the `rmf_file` argument in `EventList.read`, or calibrate with "
"`EventList.convert_pi_to_energy(rmf_file)`, if you want to apply a specific "
"response matrix"
)
except ValueError:
returns.energy_list = None
returns.instr = instr.lower()
Expand Down

0 comments on commit ed5deac

Please sign in to comment.