-
Notifications
You must be signed in to change notification settings - Fork 133
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
Should the vectorized geo_to_h3 stay as unstable? #205
Comments
Maybe we should update the warning, as Also, we're planning on a 4.0 release when the core library also moves to 4.0, so many of the function names will change anyway and break backwards compatibility. For 4.0, I would like to settle on how exactly we'd like to implement the vectorized functions. For example, it'd be nice if we could have them work like |
I think 4.0 is coming up pretty soon 😄 . I'd love to get more of the H3 API to have a vectorized counterpart. My current thoughts on this are:
|
This last point has the potential issue of requiring anyone installing Not sure how big of a problem that is, but one way to avoid it would be to have this repo publish two packages, one that's "pure" h3-py and another that includes the vectorization/numpy/etc stuff? |
I don't think so. Not sure if by "normal" you mean via wheels or from source.
|
From a cursory glance at the scikit-build docs it looks like it would be simple to update this find_package(NumPy MODULE)
...
if (NumPy_FOUND)
add_cython_file(unstable_vect)
endif()
|
Got it, though Python being even less strict on optional dependencies than Node is surprising. |
it looks like the v4.0.0b2 pre release has removed |
#147 introduced vectorized support for geo_to_h3, which sped things up by about 50% over a python for loop. It's currently under
unstable
, which raises a warning. It seems thatgeo_to_h3
gives accurate results, and that its API won't retroactively break in the future. @ajfriend do you agree?Can I suggest that the functionality gets moved to
api
instead ofunstable
? To me, the warning fromunstable
implied that it may not give correct results, which does not seem to be the case.The text was updated successfully, but these errors were encountered: