From 4a0226522a14069fb6245d0614b6cd6c31797ff4 Mon Sep 17 00:00:00 2001
From: Heather Fong <heather.fong@ligo.org>
Date: Wed, 21 Nov 2018 18:01:23 -0600
Subject: [PATCH] inspiral_intrinsics.py: allow template IDs start from 0

---
 gstlal-inspiral/python/stats/inspiral_intrinsics.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gstlal-inspiral/python/stats/inspiral_intrinsics.py b/gstlal-inspiral/python/stats/inspiral_intrinsics.py
index d0b6a07ff2..ab886f21f9 100644
--- a/gstlal-inspiral/python/stats/inspiral_intrinsics.py
+++ b/gstlal-inspiral/python/stats/inspiral_intrinsics.py
@@ -118,7 +118,7 @@ class SourcePopulationModel(object):
                                         model_ids = model['event_id'].value
                                 except KeyError:
                                         # FIXME: assume sequential order if model['event_id'] doesn't exist
-                                        model_ids = numpy.arange(1,numpy.shape(model['coefficients'].value)[-1]+1)
+                                        model_ids = numpy.arange(numpy.shape(model['coefficients'].value)[-1])
 			# PPoly can construct an array of polynomials by just
 			# feeding it the coefficients array all in one go, but then
 			# it insists on evaluating all of them at once.  we don't
-- 
GitLab