From 94067658d9debf285fa20bd6bc8fac870de268bf Mon Sep 17 00:00:00 2001
From: "gregory.ashton" <gregory.ashton@ligo.org>
Date: Thu, 13 Oct 2016 09:50:56 +0200
Subject: [PATCH] Adds functionality to specify individual priors on glitch
 magnitudes

- This requires more verbose input for all mulitple glitch searches (in
  the case that the prior is the same it will need to be repeated), but
  ultimately leads to greater flexibility.
---
 pyfstat.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyfstat.py b/pyfstat.py
index e1a8c6b..6aa7cf8 100755
--- a/pyfstat.py
+++ b/pyfstat.py
@@ -1338,6 +1338,10 @@ _        sftfilepath: str
         if 'tglitch_0' in self.theta_prior:
             full_glitch_keys[-self.nglitch:] = [
                 'tglitch_{}'.format(i) for i in range(self.nglitch)]
+            full_glitch_keys[-2*self.nglitch:-1*self.nglitch] = [
+                'delta_F1_{}'.format(i) for i in range(self.nglitch)]
+            full_glitch_keys[-4*self.nglitch:-2*self.nglitch] = [
+                'delta_F0_{}'.format(i) for i in range(self.nglitch)]
         full_theta_keys = ['F0', 'F1', 'F2', 'Alpha', 'Delta']+full_glitch_keys
         full_theta_keys_copy = copy.copy(full_theta_keys)
 
-- 
GitLab