Skip to content

Commit 260719b

Browse files
remove pypolychord, has its own package
1 parent 5d8c103 commit 260719b

File tree

5 files changed

+7
-180
lines changed

5 files changed

+7
-180
lines changed

multinest_marginals.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
For example, for a three-dimensional problem:
2828
2929
["Redshift $z$", "my parameter 2", "A"]
30-
%s""" % (sys.argv[0], __doc__))
30+
%s""" % (sys.argv[1], __doc__))
3131
sys.exit(2)
3232
parameters = json.load(open(prefix + 'params.json'))
3333
n_params = len(parameters)
@@ -44,7 +44,10 @@
4444
lo, hi = m['1sigma']
4545
med = m['median']
4646
sigma = (hi - lo) / 2
47-
i = max(0, int(-numpy.floor(numpy.log10(sigma))) + 1)
47+
if sigma == 0:
48+
i = 3
49+
else:
50+
i = max(0, int(-numpy.floor(numpy.log10(sigma))) + 1)
4851
fmt = '%%.%df' % i
4952
fmts = '\t'.join([' %-15s' + fmt + " +- " + fmt])
5053
print(fmts % (p, med, sigma))

pypolychord/__init__.py

-23
This file was deleted.

pypolychord/run.py

-132
This file was deleted.

pypolychord_demo.py

-21
This file was deleted.

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
maintainer_email = "[email protected]",
2121
url = "http://johannesbuchner.github.com/PyMultiNest/",
2222
license = "GPLv3",
23-
packages = ["pymultinest", "pycuba", "pypolychord"],
24-
provides = ["pymultinest", "pycuba", "pypolychord"],
23+
packages = ["pymultinest", "pycuba"],
24+
provides = ["pymultinest", "pycuba"],
2525
requires = ["ctypesGsl", "numpy (>=1.5)", "matplotlib", "scipy"],
2626
scripts=['multinest_marginals.py'],
2727
long_description=long_description,

0 commit comments

Comments
 (0)