boost.python argument type mismatch (numpy.int64 -> int)
I'm running into this problem:
Boost.Python.ArgumentError: Python argument types in
Dirichlet.Observe(int, numpy.int64, float)
did not match C++ signature:
Observe(unsigned int, unsigned int, double)
Seems close enough?
After doing some replacement, it seems that the middle argument is the problem. How do 开发者_如何转开发I convert numpy.int64 to int?
You could you try...
int(numpyint)
精彩评论