From 43f2bcc47e77026068677b56e6693383de281a72 Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Wed, 16 Nov 2016 12:48:40 +0100
Subject: [PATCH] Adds functionality to skip template counting

---
 pyfstat.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pyfstat.py b/pyfstat.py
index e558e31..bca1f17 100755
--- a/pyfstat.py
+++ b/pyfstat.py
@@ -54,6 +54,7 @@ parser.add_argument("-c", "--clean", help="Don't use cached data",
                     action="store_true")
 parser.add_argument("-u", "--use-old-data", action="store_true")
 parser.add_argument('-s', "--setup-only", action="store_true")
+parser.add_argument('-n', "--no-template-counting", action="store_true")
 parser.add_argument('unittest_args', nargs='*')
 args, unknown = parser.parse_known_args()
 sys.argv[1:] = args.unittest_args
@@ -1998,6 +1999,8 @@ class MCMCFollowUpSearch(MCMCSemiCoherentSearch):
 
     def get_number_of_templates_estimate(self, nsegs):
         """ Returns V, Vsky, Vf estimated from the super-sky metric """
+        if args.no_template_counting:
+            return 'N/A'
         tboundaries = np.linspace(self.minStartTime, self.maxStartTime,
                                   nsegs+1)
         if 'Alpha' in self.theta_keys:
-- 
GitLab