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