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

Feature request: a unified guvectorize type string #2317

Open
mcg1969 opened this issue Mar 23, 2017 · 0 comments
Open

Feature request: a unified guvectorize type string #2317

mcg1969 opened this issue Mar 23, 2017 · 0 comments

Comments

@mcg1969
Copy link

mcg1969 commented Mar 23, 2017

A non-trivial fraction of my compile-time debug cycle consists of fixing unintentional inconsistencies between the JIT string and the GUFunc string in a @guvectorize decorator. I concede that I might be an odd duck in the degree to which I use generalized ufuncs, but I'd still like to see a way to unify the two strings together.

I've mocked up a way to do so here: https://gist.github.com/mcg1969/694204e08df3a7f9e327e4791af7a721

I attempted to implement this using as much of the existing approaches and code as I could, to ensure it is both as flexible and back-compatible as possible. I'm quite pleased with the results and frankly am considering using this in my own projects. I'd love to see it supported alongside the traditional two-string approach.

I'm happy to submit a PR that implements a back-compatible approach.

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

No branches or pull requests

2 participants