Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double registration of TinyVector converters #2

Open
burgerdev opened this issue Feb 7, 2014 · 3 comments
Open

Double registration of TinyVector converters #2

burgerdev opened this issue Feb 7, 2014 · 3 comments

Comments

@burgerdev
Copy link

The ExportV.export_() call in blockwisecc_py.cxx, at line 106, implicitly registers a to-python converter for vigra::TinyVector, which is probably already registered in vigra. Should be replaced by an explicit from-python converter.

Warning:

$ python -c 'import blockedarray'
/home/markus/Coding/hci/blockedarray/blockedarray/__init__.py:1: RuntimeWarning: to-Python converter for vigra::TinyVector<int, 2> already registered; second conversion method ignored.
  from _blockedarray import *
/home/markus/Coding/hci/blockedarray/blockedarray/__init__.py:1: RuntimeWarning: to-Python converter for vigra::TinyVector<int, 3> already registered; second conversion method ignored.
  from _blockedarray import *
@thorbenk
Copy link
Owner

thorbenk commented Feb 8, 2014

Would you like to prepare a pull request for this?

@burgerdev
Copy link
Author

On 08.02.2014 08:21, thorbenk wrote:

Would you like to prepare a pull request for this?


Reply to this email directly or view it on GitHub:
#2 (comment)

I would like to, as soon as I figure out how to do it ;)

@burgerdev
Copy link
Author

Seems like the converters are not necessary, vigra registers converters for vigra::TinyVector<N,MultiArrayIndex> to python tuples by default. But boost still complains about missing converters when properties are exposed, methods work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants