Commit e801272fdb12017ea188572eb22d2cae17c5cb2d

Authored by Andreas Specovius
Committed by Luigi Tibaldo
1 parent 68aa70c0

Piping for csphagen implemented.

Showing 1 changed file with 16 additions and 0 deletions
cscripts/csphagen.py
@@ -829,6 +829,22 @@ class csphagen(ctools.csobservation): @@ -829,6 +829,22 @@ class csphagen(ctools.csobservation):
829 # Return 829 # Return
830 return 830 return
831 831
  832 + def exclmap(self, mapobj=None):
  833 + """
  834 + Access exclusion map object
  835 + """
  836 + # Check if exclusion map object was provided
  837 + if type(mapobj) is gammalib.GSkyRegionMap:
  838 +
  839 + # Set exclusion map
  840 + self._excl_reg = mapobj
  841 +
  842 + # Set has exclusion to yes
  843 + self._has_exclusion = True
  844 +
  845 + # Return
  846 + return self._excl_reg
  847 +
832 848
833 # ======================== # 849 # ======================== #
834 # Main routine entry point # 850 # Main routine entry point #