From 2dcbdb7ec8ed4749e9697df67ad847b4473f5eb2 Mon Sep 17 00:00:00 2001 From: Andreas Specovius Date: Thu, 8 Nov 2018 16:31:00 +0100 Subject: [PATCH] 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. --- cscripts/obsutils.py | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/cscripts/obsutils.py b/cscripts/obsutils.py index fa29e85..ce4067d 100755 --- a/cscripts/obsutils.py +++ b/cscripts/obsutils.py @@ -814,6 +814,14 @@ def get_onoff_obs(cls, obs, nthreads=0): phagen['clobber'] = cls['clobber'].boolean() phagen['debug'] = cls['debug'].boolean() phagen['nthreads'] = nthreads + + # Pipe exclusion region map + if hasattr(cls, 'exclregmap'): + excl_reg_map = cls.exclregmap() + if excl_reg_map is not None: + phagen.exclregmap(excl_reg_map) + + # Run csphagen phagen.run() # Clone resulting observation container -- libgit2 0.21.4