From 985680b2bf7ab656061619281663f3885a04d89c Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 15 Apr 2021 14:12:30 +0200 Subject: [PATCH] Correct argument of error massage --- cscripts/csphagen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cscripts/csphagen.py b/cscripts/csphagen.py index 9ffd6f7..e39a3ca 100755 --- a/cscripts/csphagen.py +++ b/cscripts/csphagen.py @@ -614,7 +614,8 @@ class csphagen(ctools.csobservation): msg = ' Skip because the number %d of regions' \ 'for background estimation not overlapping ' \ 'with the exclusion region is smaller than ' \ - '"bkgregmin"=%d.' % (bkg_reg.size(), self['bkgregmin'].integer()) + '"bkgregmin"=%d.' % \ + (regions.size(), self['bkgregmin'].integer()) self._log_string(gammalib.NORMAL, msg) regions = gammalib.GSkyRegions() -- libgit2 0.21.4