PyWafo install on Mac - Error in gumbel_r.fit2

28 views
Skip to first unread message

Bob Frat

unread,
May 1, 2014, 5:55:42 PM5/1/14
to wa...@googlegroups.com
Has anyone tried installing PyWafo on a Mac? I am using Python 2.7.5. I downloaded source code from svn, ran build_all.py and setup.py and it seemed to go smoothly.

When I try applying the gumbel fit in the chapter 5 tutorial I get the following error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-52a9e6f5a46c> in <module>()
----> 1 gum = ws.gumbel_r.fit2(Hs)
      2 tmp = ws.probplot(Hs, gum.par, dist='gumbel_r', plot=plt)

....
....
....
/Users/bobfratantonio/Documents/Dev/virtenvs/work/lib/python2.7/site-packages/wafo-0.1.2-py2.7.egg/wafo/stats/_distn_infrastructure.pyc in nlogps(self, theta, x)
   2165             i_tie = np.nonzero(tie)
   2166             tiedata = x[i_tie]
-> 2167             logD[i_tie + 1] = log(self._pdf(tiedata, *args)) - log(scale)
   2168 
   2169         finiteD = np.isfinite(logD)
TypeError: can only concatenate tuple (not "int") to tuple

I can send the whole traceback if needed.

Thanks,
Bob
Reply all
Reply to author
Forward
0 new messages