Skip to content

Commit

Permalink
Merge branch 'iss42'
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeaw committed Apr 7, 2020
2 parents 2bcd8c4 + 4c28547 commit a49ac83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

![Python version badge](https://img.shields.io/badge/python-3.6-blue.svg)
[![license](https://img.shields.io/github/license/LoLab-VU/Gleipnir.svg)](LICENSE)
![version](https://img.shields.io/badge/version-0.26.1-orange.svg)
[![release](https://img.shields.io/github/release-pre/LoLab-VU/Gleipnir.svg)](https://github.com/LoLab-VU/Gleipnir/releases/tag/v0.26.1)
![version](https://img.shields.io/badge/version-0.26.2-orange.svg)
[![release](https://img.shields.io/github/release-pre/LoLab-VU/Gleipnir.svg)](https://github.com/LoLab-VU/Gleipnir/releases/tag/v0.26.2)
[![anaconda cloud](https://anaconda.org/blakeaw/gleipnir/badges/version.svg)](https://anaconda.org/blakeaw/gleipnir)
[![DOI](https://zenodo.org/badge/173688080.svg)](https://zenodo.org/badge/latestdoi/173688080)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e117a46ae8b241539742ab00f8cd1b38)](https://www.codacy.com/app/blakeaw1102/Gleipnir?utm_source=github.com&utm_medium=referral&utm_content=LoLab-VU/Gleipnir&utm_campaign=Badge_Grade)
Expand Down Expand Up @@ -83,7 +83,7 @@ pip install gleipnir-ns
```
or it can be directly sourced from the GitHub repo:
```
pip install -e git+https://github.com/LoLab-VU/Gleipnir@v0.26.1#egg=gleipnir
pip install -e git+https://github.com/LoLab-VU/Gleipnir@v0.26.2#egg=gleipnir
```
However, sourcing from the GitHub repo will not automatically install the core dependencies. You would have to do that separately:
```
Expand Down
2 changes: 1 addition & 1 deletion gleipnir/nsbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def posterior_moments(self):
marginal, edges, centers = post[parm]
width = edges[1] - edges[0]
# resample from the distribution
samples = np.random.choice(centers, size=1000000, p=marginal/(marginal.sum())) + (width*(np.random.random(10000)-0.5))
samples = np.random.choice(centers, size=1000000, p=marginal/(marginal.sum())) + (width*(np.random.random(1000000)-0.5))
mean = np.mean(samples)
var = np.var(samples)
skew = scipy.stats.skew(samples)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from distutils.core import setup

setup(name='gleipnir',
version='0.26.1',
version='0.26.2',
description='Python toolkit for Nested Sampling.',
author='Blake A. Wilson',
author_email='blake.a.wilson@vanderbilt.edu',
Expand Down

0 comments on commit a49ac83

Please sign in to comment.