Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 7th July 2020 starting at approximately 10am PDT and lasting for around 15 minutes. There will be a short period of downtime towards the end of the maintenance window. Please direct any comments, questions, or concerns to uwm-help@cgca.uwm.edu.

Commit 6641e7c0 authored by Soichiro Morisaki's avatar Soichiro Morisaki Committed by Vivien Raymond

bayespputils.py: minor python3 fix

parent 731f2575
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
# MA 02110-1301, USA. # MA 02110-1301, USA.
from six.moves import range from six.moves import range
from functools import reduce
import matplotlib import matplotlib
matplotlib.use('Agg') #sets backend to not need to open windows matplotlib.use('Agg') #sets backend to not need to open windows
......
...@@ -4245,7 +4245,7 @@ def plot_corner(posterior,levels,parnames=None): ...@@ -4245,7 +4245,7 @@ def plot_corner(posterior,levels,parnames=None):
except ImportError: except ImportError:
print('Cannot load corner module. Try running\n\t$ pip install corner') print('Cannot load corner module. Try running\n\t$ pip install corner')
return None return None
parnames=filter(lambda x: x in posterior.names, parnames) parnames=list(filter(lambda x: x in posterior.names, parnames))
labels = [plot_label(parname) for parname in parnames] labels = [plot_label(parname) for parname in parnames]
data = np.hstack([posterior[p].samples for p in parnames]) data = np.hstack([posterior[p].samples for p in parnames])
if posterior.injection: if posterior.injection:
......
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