Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix in Euclid likelihoods #129

Open
wants to merge 1 commit into
base: 2.2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions montepython/likelihoods/euclid_pk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from montepython.likelihood_class import Likelihood
import os
import numpy as np
import warnings
from numpy import newaxis as na
from math import exp, log, pi, log10

Expand Down Expand Up @@ -169,10 +168,9 @@ def loglkl(self, cosmo, data):
fid_file.write('%.8g %.8g\n' % (H[index_z], D_A[index_z]))
for index_z in xrange(self.nbin):
fid_file.write('%.8g\n' % sigma_r[index_z])
print '\n'
warnings.warn(
"Writing fiducial model in %s, for %s likelihood\n" % (
self.data_directory+'/'+self.fiducial_file, self.name))
print '\n\n /|\ Writing fiducial model in {0}'.format(
fid_file_path)
print '/_o_\ for {0} likelihood'.format(self.name)
return 1j

# NOTE: Many following loops will be hidden in a very specific numpy
Expand Down