-
Notifications
You must be signed in to change notification settings - Fork 132
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
What is the status / plan for vectorized APIs? #341
Comments
For reference: |
We tried previously having an "unstable" API to experiment with things like vector functions: #147 I'd be interested in bringing that back in the 4.0 branch, probably still as an unstable/experimental module to indicate the API may change in the future as we figure out what we want it to look like. |
@ajfriend Thanks for the info. |
@ajfriend I took a second look on this issue... A few questions:
Thanks |
I haven't been deep in the Cython code in a while, but if my memory serves, A Because (I'll try to get to your other points soon.) |
That makes sense. Although, recently, I've been thinking there might be another potential way to organize this rather than putting the code in This would let others write fast Cython code involving the |
I don't off the top of my head. I think it would depend on the application. That being said, I think developing some benchmarks would be helpful. You might be able to test things fairly quickly with something like https://github.com/uber/h3-py/blob/master/tests/test_cython/cython_example.pyx |
That's an interesting idea. I think exposing cython functions is good. However, I think Cython is hard for most python users. Most people probably prefer Should we continue the discussion back in Slack (for more visibility?) BTW, thanks for answering my questions. After reading a little bit more |
For what I'm thinking, the average user would not need to know anything about Cython. If we produced a separate package (called whatever, maybe Since we're not sure exactly what the vectorized API looks like just yet, I think that could provide a lot of benefits: You're less strongly coupled to the If we later finalize an API, we could migrate it into Again, I'm not saying this is the only way to do it, but I do think it is an attractive option. But, all in all, once we get that first example package working, I'd expect this to be the much easier path. |
Also, feel free to flag the discussion in Slack, but I'd like to keep the main discussion on Github since Slack history gets lost relatively quickly. |
I threw together an example that still needs some work, but this would be the idea: https://github.com/ajfriend/h3_example_package |
Thanks for the clarifications! I think it makes all sense now. I didn't realize
sounds good Thanks also for the example.. I will try to build something on it.. |
Currently, what is the recommend way to do this (with this package)?
For example, I have two numpy arrays of lat/lon and want to convert them into an array of h3 hex
The text was updated successfully, but these errors were encountered: