Commit 35e623ebde8b9d43fc93a2bf7e78ba8c36619381

Authored by Andreas Specovius
Committed by Luigi Tibaldo
1 parent 26abd160

Changed obsutils to check for the exclusion region map parameter and to pipe the…

… exclusion region map to csphagen if present and set. This affects on/off analysis only.
Showing 1 changed file with 8 additions and 0 deletions
cscripts/obsutils.py
... ... @@ -814,6 +814,14 @@ def get_onoff_obs(cls, obs, nthreads=0):
814 814 phagen['clobber'] = cls['clobber'].boolean()
815 815 phagen['debug'] = cls['debug'].boolean()
816 816 phagen['nthreads'] = nthreads
  817 +
  818 + # Pipe exclusion region map
  819 + if hasattr(cls, 'exclregmap'):
  820 + excl_reg_map = cls.exclregmap()
  821 + if excl_reg_map is not None:
  822 + phagen.exclregmap(excl_reg_map)
  823 +
  824 + # Run csphagen
817 825 phagen.run()
818 826  
819 827 # Clone resulting observation container
... ...