Commit 3c42b883cbd820d2541614cee77b8f211e534510

Authored by Andreas Specovius
Committed by Jürgen Knödlseder
1 parent 31d36e03

Piping for csphagen implemented.

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