From e801272fdb12017ea188572eb22d2cae17c5cb2d Mon Sep 17 00:00:00 2001 From: Andreas Specovius Date: Thu, 8 Nov 2018 15:07:21 +0100 Subject: [PATCH] Piping for csphagen implemented. --- cscripts/csphagen.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+), 0 deletions(-) diff --git a/cscripts/csphagen.py b/cscripts/csphagen.py index 62f92c5..4e312db 100755 --- a/cscripts/csphagen.py +++ b/cscripts/csphagen.py @@ -829,6 +829,22 @@ class csphagen(ctools.csobservation): # Return return + def exclmap(self, mapobj=None): + """ + Access exclusion map object + """ + # Check if exclusion map object was provided + if type(mapobj) is gammalib.GSkyRegionMap: + + # Set exclusion map + self._excl_reg = mapobj + + # Set has exclusion to yes + self._has_exclusion = True + + # Return + return self._excl_reg + # ======================== # # Main routine entry point # -- libgit2 0.21.4