---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-50-8bf7cde81434> in <module>()
1 z1 = [bs.bs(m_samples, m_lvalues, m.logpdf, mvu, n2=2000, niter=10, return_all=False, guess=log(1)) for i in range(150)]
----> 2 z2 = [bs.bs(m_samples, m_lvalues, m.logpdf, mvu, n2=4000, niter=10, return_all=False, guess=log(1)) for i in range(150)]
/home/parviainen/.local/lib/python2.7/site-packages/pymstk/bridgesampling.pyc in bs(x, q, q1fun, q2fun, means, sigmas, n2, niter, return_all, guess)
36
37 lq11 = np.asarray(q)
---> 38 lq12 = np.array([q1fun(x2) for x2 in x2s])
39 lq22 = np.array([q2fun(x2) for x2 in x2s])
40 lq21 = np.array([q2fun(x1) for x1 in x1s])
<ipython-input-46-d59ad753dd2a> in logpdf(self, x)
21
22 def logpdf(self, x):
---> 23 return log(self.a) + log(self.dist.pdf(x))
24
25
/usr/lib/python2.7/dist-packages/scipy/stats/distributions.pyc in pdf(self, x)
333
334 def pdf(self, x): #raises AttributeError in frozen discrete distribution
--> 335 return self.dist.pdf(x, *self.args, **self.kwds)
336
337 def cdf(self, x):
/usr/lib/python2.7/dist-packages/scipy/stats/distributions.pyc in pdf(self, x, *args, **kwds)
1108 output = zeros(shape(cond),'d')
1109 putmask(output,(1-cond0)*array(cond1,bool),self.badvalue)
-> 1110 if any(cond):
1111 goodargs = argsreduce(cond, *((x,)+args+(scale,)))
1112 scale, goodargs = goodargs[-1], goodargs[:-1]
KeyboardInterrupt: