Commit b856053f authored by Colm Talbot's avatar Colm Talbot
Browse files

fix prior file loading

parent f04ab987
......@@ -338,7 +338,7 @@ class FromFile(Interped):
try:
self.id = file_name
if '/' not in self.id:
self.id = '{}/tupak/prior_files/{}'.format(os.getcwd(), self.id)
self.id = os.path.join(os.path.dirname(__file__), 'prior_files', self.id)
xx, yy = np.genfromtxt(self.id).T
Interped.__init__(self, xx=xx, yy=yy, minimum=minimum, maximum=maximum, name=name, latex_label=latex_label)
except IOError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment