From 5d7d7fd180738b1e925f3823dd62a0cecc8f2cb1 Mon Sep 17 00:00:00 2001
From: Chad Hanna <chad.hanna@ligo.org>
Date: Tue, 23 Oct 2018 12:28:57 -0700
Subject: [PATCH] inspiral_intrinsics.py: disable default population model file
 and require a user to specify it

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

diff --git a/gstlal-inspiral/python/stats/inspiral_intrinsics.py b/gstlal-inspiral/python/stats/inspiral_intrinsics.py
index ed581beb72..ea28c437ed 100644
--- a/gstlal-inspiral/python/stats/inspiral_intrinsics.py
+++ b/gstlal-inspiral/python/stats/inspiral_intrinsics.py
@@ -91,8 +91,17 @@ class UniformInTemplatePopulationModel(object):
 
 
 class SourcePopulationModel(object):
-	POPULATION_MODELS_PATH = os.path.join(gstlal_config_paths["pkgdatadir"], "population_models")
-	DEFAULT_FILENAME = os.path.join(POPULATION_MODELS_PATH, "O2/lnP_template_signal_BBH_logm_reweighted_mchirp.hdf5")
+	#
+	# NOTE: This is no longer the default file used in the population
+	# model.  Various tools including the dag have been modified to allow
+	# the user to specify the mass model file at run time.  If you want to
+	# use this file, you should point the dag script to wherever it is on
+	# your filesystem.
+	#
+	# NOTE: future code will have this comment and these next two lines deleted.
+	#
+	#POPULATION_MODELS_PATH = os.path.join(gstlal_config_paths["pkgdatadir"], "population_models")
+	#DEFAULT_FILENAME = os.path.join(POPULATION_MODELS_PATH, "O2/lnP_template_signal_BBH_logm_reweighted_mchirp.hdf5")
 
 
 	def __init__(self, template_ids, filename = None):
-- 
GitLab