Skip to content

Commit

Permalink
Merge pull request gammapy#5214 from registerrier/minor_correction
Browse files Browse the repository at this point in the history
Correct warning printout in MapEvaluator
  • Loading branch information
registerrier authored Apr 16, 2024
2 parents 906d360 + c89aa94 commit 6d13e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gammapy/datasets/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def update(self, exposure, psf, edisp, geom, mask):
self.contributes = self.model.contributes(mask=mask, margin=self.psf_width)
if self.contributes and not self.model.contributes(mask=mask):
log.warning(
"Model {m.name} is outside the target geom but contributes inside through the psf."
f"Model {self.model.name} is outside the target geom but contributes inside through the psf."
"This contribution cannot be estimated precisely."
"Consider extending the dataset geom and/or the masked margin in the mask_fit."
)
Expand Down

0 comments on commit 6d13e27

Please sign in to comment.