From c3ef09cea69385d42ea5a08f484ff8bff6e9f84b Mon Sep 17 00:00:00 2001
From: Ryan <rzm50@psu.edu>
Date: Tue, 20 Nov 2018 18:02:29 -0500
Subject: [PATCH] Fixed import error with numpy/np

---
 gstlal-inspiral/python/stats/inspiral_intrinsics.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gstlal-inspiral/python/stats/inspiral_intrinsics.py b/gstlal-inspiral/python/stats/inspiral_intrinsics.py
index c17e5d89a9..e78962530f 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 = np.arange(1,np.shape(f['coefficients'].value)[-1]+1)
+                                        model_ids = numpy.arange(1,numpy.shape(f['coefficients'].value)[-1]+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
@@ -132,7 +132,7 @@ class SourcePopulationModel(object):
                                 # maps template ID to the right coefficient array, since template IDs
                                 # in the bank may not be in sequential order
                                 try:
-                                        template_indices[template_id] = np.where(model_ids==template_id)[0][0]
+                                        template_indices[template_id] = numpy.where(model_ids==template_id)[0][0]
                                 except KeyError:
                                         raise KeyError("template ID %d is not in this model" % template_id)
 			self.polys = dict((template_id, PPoly(coefficients[:,:,[template_indices[template_id]]], snr_bp)) for template_id in template_ids)
-- 
GitLab