0
Fork 0
mirror of https://github.com/uber/h3-py.git synced 2026-11-16 07:44:46 +00:00

Compare commits

...

48 commits

Author SHA1 Message Date
Jongbin Jung
cb852ab893
Merge pull request #515 from jongbinjung/fix-coverage-identity-binding
Exclude identity-binding block from coverage to fix CI on master
2026-11-13 15:54:06 -08:00
Jongbin Jung
bec9b81090 Exclude identity-binding block from coverage
The block added in #504 only runs when `_out_scalar is _in_scalar`, which
is true for basic_int, numpy_int, and memview_int, but not for basic_str.
Coverage is only measured on the basic_str copy of the shared API file,
so the block showed up as uncovered and failed the 100% coverage gate on
master.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 15:43:39 -08:00
Jongbin Jung
c00866b555
Merge pull request #504 from connerkup/fix/501-identity-out-scalar-wrapper
perf: bind scalar functions directly to _cy when _out_scalar is identity (#501)
2026-11-13 15:14:23 -08:00
Jongbin Jung
405a1f61d5
Merge pull request #513 from jongbinjung/changelog-unreleased-updates
Add missing items from changelog
2026-11-13 14:08:44 -08:00
Jongbin Jung
9a26dc6477 Add missing items from changelog 2026-11-13 14:08:01 -08:00
Jongbin Jung
87d1ccb8c4
Merge pull request #511 from sebxt/fix/geo-empty-polygon-typeerror
Handle empty GeoJSON Polygon in geo_to_h3shape
2026-11-13 13:39:59 -08:00
Jongbin Jung
cc6f8825ca
Merge pull request #512 from kwy404/fix-multipoly-experimental-duplicates
fix: don't return a cell twice from h3shape_to_cells_experimental for a LatLngMultiPoly
2026-11-13 13:38:19 -08:00
kwy404
8db9a2f962 fix: don't return a cell twice from h3shape_to_cells_experimental for a LatLngMultiPoly 2026-10-23 17:40:02 -03:00
Sebastian Turner
1c84623b12
Handle empty GeoJSON Polygon in geo_to_h3shape
Signed-off-by: Sebastian Turner <sebastiant3484@gmail.com>
2026-10-20 16:47:26 -07:00
Jongbin Jung
b74c0e35c6
Merge pull request #509 from auraseb/fix/average-hexagon-rads-unit
Support rads units in average_hexagon_area and average_hexagon_edge_length
2026-10-19 16:27:37 -07:00
Sebastian Turner
f423ef9b8d
Support rads units in average_hexagon_area and average_hexagon_edge_length
Signed-off-by: Sebastian Turner <sebastiant3484@gmail.com>
2026-10-19 15:56:52 -07:00
Jongbin Jung
f9e35e3944
Merge pull request #506 from shaan-forks/ci/python-3.15
Add CI test and build for Python 3.15 and 3.15t
2026-10-19 14:17:19 -07:00
Jongbin Jung
83fac55493
Merge pull request #507 from kwy404/fix-is-valid-out-of-range-index
fix: return False from is_valid_* for indexes outside the uint64 range
2026-10-19 11:23:25 -07:00
kwy404
b19b0421fe fix: return False from is_valid_* for indexes outside the uint64 range 2026-10-10 21:26:03 -03:00
Shaan Majid
93b40427d0
Add CI test and build for Python 3.15 and 3.15t 2026-10-09 17:49:47 -07:00
Jongbin Jung
169035d81d
Merge pull request #505 from kwy404/fix-latlngpoly-closed-ring-validation
fix: validate LatLngPoly loop length after dropping the closing point
2026-10-08 21:21:49 -07:00
kwy404
c0e89d0ff9 fix: validate LatLngPoly loop length after dropping the closing point 2026-10-01 18:48:06 -03:00
Conner Kupferberg
47efd3266c perf: bind scalar functions directly to _cy when _out_scalar is identity (#501)
In h3.api.basic_int, numpy_int, and memview_int, _out_scalar is the identity
function, incurring unnecessary Python function call frames and wrapper
overhead on every scalar call.

When _out_scalar is _in_scalar (integer-returning flavours), bind scalar
functions directly to their _cy Cython implementations while preserving
original docstrings and signatures.

Eliminates ~18% (and up to 50%+ on ARM) latency on scalar calls.

Fixes #501.
2026-09-22 05:16:00 +00:00
Jongbin Jung
c38c1e42c3
Merge pull request #502 from dyrpsf/fix-geo-type-validation
fix: replace geo input assert with ValueError and add test
2026-09-08 14:32:12 -07:00
dyrpsf
631d8a6e43 test: consolidate test_bad_geo_input to fix linter error 2026-08-27 09:36:30 +05:30
Deepak Yadav
856558d08e
Merge branch 'master' into fix-geo-type-validation 2026-08-26 22:08:55 +05:30
dyrpsf
c7b48389da fix: replace geo input assert with ValueError and add test 2026-08-26 22:04:52 +05:30
Jongbin Jung
871841452f
Merge pull request #499 from jongbinjung/jongbin/freethreading
Add CI test and build for python3.14t
2026-08-24 14:16:37 -07:00
Jongbin Jung
51dbbeb74f
Merge pull request #500 from Hashim1999164/fix/geo-to-h3shape-replace-assert
Raise ValueError instead of assert in geo_to_h3shape
2026-08-24 14:15:06 -07:00
Hashim1999164
a4bc7398f4 Raise ValueError instead of assert in geo_to_h3shape
The leftover assert isinstance check tripped Bandit and was marked for removal. Invalid inputs now get an explicit ValueError.
2026-08-23 01:32:12 +05:00
Jongbin Jung
af962c0ab4
Merge pull request #497 from dyrpsf/test-uncompact-resolution
test: add test for uncompacting to a coarser resolution
2026-08-14 12:01:10 -07:00
Jongbin Jung
e3b0a6d96d Add CI test and build for python3.14t 2026-08-12 12:52:02 -07:00
Jongbin Jung
65f85a58a3
Merge pull request #493 from aureliobarbosa/test_python3.14_freethreaded
Fix wheels for python 3.14 free thread
2026-08-12 10:29:17 -07:00
Isaac Brodsky
70c65945e3
Merge pull request #495 from dyrpsf/feature-geojson-containers
Feat: Add explicit container options for GeoJSON outputs
2026-08-12 09:34:24 -07:00
dyrpsf
5dc46e4f28 test: update comment to match H3ResMismatchError 2026-08-03 21:43:59 +05:30
Isaac Brodsky
c86f442684
Merge pull request #496 from dyrpsf/test-formatting-cleanup 2026-08-03 08:48:18 -07:00
dyrpsf
822320f30b test: restore 0x prefix to match actual exception message 2026-08-02 10:05:10 +05:30
Deepak Yadav
58be699d13
Update tests/test_lib/test_cells_and_edges.py
Co-authored-by: Isaac Brodsky <isaac@isaacbrodsky.com>
2026-08-01 21:11:58 +05:30
Deepak Yadav
8cd64decd0
Update tests/test_lib/test_cells_and_edges.py
Co-authored-by: Isaac Brodsky <isaac@isaacbrodsky.com>
2026-08-01 21:07:42 +05:30
dyrpsf
2f62194f0f test: add test for uncompacting cells to a coarser resolution 2026-07-29 17:09:51 +05:30
dyrpsf
497aa4df24 test: clean up string formatting in test_parent_err 2026-07-26 22:13:45 +05:30
dyrpsf
55530fa42b test: move tests to test_lib for coverage; fix EOF newline 2026-07-26 09:59:02 +05:30
dyrpsf
03678bb3ed test: fix LatLngMultiPoly initialization to resolve CI crash and restore coverage 2026-07-25 23:16:31 +05:30
dyrpsf
a2add15580 test: verify MultiPolygon to MultiPolygon matching; fix line length 2026-07-23 12:26:50 +05:30
dyrpsf
e02b8a6e95 fix: raise ValueError for invalid or insufficient GeoJSON containers 2026-07-22 20:40:46 +05:30
dyrpsf
b1f5f9abc8 test: add unit tests for GeoJSON container options; fix linting 2026-07-22 16:02:28 +05:30
dyrpsf
1d358b275e feat: add container formatting options to GeoJSON outputs 2026-07-22 09:10:15 +05:30
Jongbin Jung
6fd9eff86b
Merge pull request #494 from dyrpsf/fix-android-cross-compile
Fix: Resolve Android cross-compilation failure (Issue #458)
2026-07-13 14:50:35 -07:00
Jongbin Jung
d44676e44f
Merge pull request #490 from arpitjain099/chore/declare-workflow-perms
ci: declare contents:read on lint_and_coverage workflow
2026-07-13 09:42:49 -07:00
dyrpsf
4e9d379a20 build: detect Buildozer environment to fix Android cross-compilation 2026-07-07 15:23:28 +05:30
Marco Barbosa
1ed3273533 adds trove for python free threading and changelog 2026-06-18 00:04:12 +00:00
Marco Barbosa
33badf14f2 annotates .pyx cython files as compatible with freethreading python 2026-06-17 23:44:05 +00:00
Arpit Jain
7d1df6e070
ci: declare contents:read on lint_and_coverage workflow
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
2026-06-10 16:25:52 +09:00
25 changed files with 373 additions and 26 deletions