From c03b0a0312e34ae4cf99e184459939db46d526eb Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Wed, 19 Oct 2016 09:20:31 +0200
Subject: [PATCH] Adds --clean argument functionaility to grid search

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

diff --git a/pyfstat.py b/pyfstat.py
index ec92a6c..dea022d 100755
--- a/pyfstat.py
+++ b/pyfstat.py
@@ -1531,6 +1531,8 @@ class GridSearch(BaseSearchClass):
         self.input_data = np.array(input_data)
 
     def check_old_data_is_okay_to_use(self):
+        if args.clean:
+            return False
         if os.path.isfile(self.out_file) is False:
             logging.info('No old data found, continuing with grid search')
             return False
-- 
GitLab