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

Compare commits

..

61 commits

Author SHA1 Message Date
AJ Friend
50c649c6b6 avoiding superfluous methods in the memory manager, because I'm not sure there's a way to make them private 2022-07-31 00:43:26 -07:00
AJ Friend
3b3f9272f4 organize 2022-07-31 00:33:56 -07:00
AJ Friend
2d8f4167ea mv is better than x 2022-07-31 00:15:41 -07:00
AJ Friend
865326af42 another comment on n==0 2022-07-31 00:10:51 -07:00
AJ Friend
49e114732b don't need the n==0 case 2022-07-31 00:10:27 -07:00
AJ Friend
bfa13ed6d1 add method: _create_mv 2022-07-31 00:04:46 -07:00
AJ Friend
e1f56db442 little cleanup 2022-07-30 23:55:59 -07:00
AJ Friend
b8f53dbd80 _remove_zeros helper method 2022-07-30 23:46:07 -07:00
AJ Friend
bf5fb8a079 memory allocator options 2022-07-30 23:25:28 -07:00
AJ Friend
11aa2eb14b rename to iter_to_mv 2022-07-30 18:58:47 -07:00
AJ Friend
8a8813339c move around 2022-07-30 18:54:17 -07:00
AJ Friend
7811697188 mv_from_iter should be under memory module 2022-07-30 18:49:01 -07:00
AJ Friend
55c4343396 nice and clean 2022-07-30 18:45:28 -07:00
AJ Friend
7afc536cae line 2022-07-30 18:36:18 -07:00
AJ Friend
28dc3698b2 comments 2022-07-30 18:36:06 -07:00
AJ Friend
7307e97ca5 maybe we don't need this? 2022-07-30 18:35:25 -07:00
AJ Friend
8d2acb90c0 clean 2022-07-30 18:32:40 -07:00
AJ Friend
e8b245747d works 2022-07-30 18:29:21 -07:00
AJ Friend
e945f1fd4c clean up 2022-07-30 18:27:32 -07:00
AJ Friend
b2307b0040 works! 2022-07-30 18:25:59 -07:00
AJ Friend
4d90557d24 bah 2022-07-30 18:22:49 -07:00
AJ Friend
85ab47dae5 meh 2022-07-30 18:16:58 -07:00
AJ Friend
24eef340b3 remove create_ptr and create_mv 2022-07-30 17:46:32 -07:00
AJ Friend
d12658336b Not sure why, but self.ptr = NULL fixes the bug 2022-07-30 17:33:21 -07:00
AJ Friend
d626e6772e Merge branch 'ajfriend/memory_system' into dev_v4_2 2022-07-30 17:13:03 -07:00
AJ Friend
20a6a29dae
New error system (#260)
* starting to play around with new error system

* move enum to h3lib.pxd

* this structure is weird :(

* error system gets its own file

* go back to using H3ErrorCodes

* extern the H3ErrorCodes

* remove H3Index in favor of just H3int

* " to '

* import ordering

* something

* exception hierarchy

* formatting

* errors list

* remove H3ResolutionError

* remove H3EdgeError

* remove H3CellError

* remove H3DistanceError

* H3FailedError

* domain error

* H3UnrecognizedException

* most of em done

* remove H3ValueError

* remove some checks

* ideas ideas

* document what the function raises?

* thoughts

* lint

* one half idea for DRYing (kinda)

* potentially make the E_SUCCESS path faster

* typos

* maple syrup

* cimport H3ErrorCodes as ec

* clean up

* whitespace

* clarify cases

* trying new error idiom

* thanks comment

* notes

* applied idiom a few times now

* alternative idiom?

* handling some more potential errors

* idioms and ideas

* clean

* removing check

* interesting allocation example

* lint

* just trying to beat 2.7 for sport right now

* works?

* bow to lint

* using enum values directly!

* now that's a hierarchy

* remove raise_with_msg

* ij funcs

* lint

* remove some checks

* remove err

* comment

* cleaned up `ring`, and i think i fixed a memory leak bug

* think i fixed another memory leak bug

* another memory leak bug

* memory leaks!

* clean

* removing some comments

* meh

* H3Exception shouldn't be appearing as a concrete object

* renaming some base exceptions

* clean up

* don't have a test for this anyway

* documented

* puttering around

* words

* backing up this nonsense with an airtight argument

* air toight

* todos

* more words

* skepticism

* rewording

* editing

* ordering

* tests on the error codes

* more error code tests

* note

* address some comments

* we raise!

* lint

* comments
2022-07-28 15:47:09 -04:00
AJ Friend
95c9affd90
Remove more sdist files (#259)
* remove scripts/examples/apps

* BUILD_FUZZERS OFF

* ENABLE_FORMAT off

* turn off all the things (and sort options)

* mac attack

* see if there's a build time difference

* back to the future
2022-06-06 16:37:42 -07:00
AJ Friend
03a27e71c9 notes 2022-06-06 01:11:02 -07:00
AJ Friend
12b6370f09 even with the error checking... 2022-06-04 23:18:42 -07:00
AJ Friend
cec9c84fa5 so i can get this far, but i run into issues when i try to convert
`polyfill_polygon`. some memory error. not sure what's happening just yet.
2022-06-04 23:07:01 -07:00
AJ Friend
f918c91b81 i think that covers edges.pyx 2022-06-04 22:47:16 -07:00
AJ Friend
9669632af5 cells.pyx is moved over 2022-06-04 22:43:01 -07:00
AJ Friend
f2fd2b7ca5 get_faces 2022-06-04 22:29:04 -07:00
AJ Friend
2ceaa5c493 these work 2022-06-04 22:19:45 -07:00
AJ Friend
0354013a51 but back to what's good, just to be safe 2022-06-04 22:16:11 -07:00
AJ Friend
f4471d3a2a oh boy. didn't actually break on this one. 2022-06-04 22:15:54 -07:00
AJ Friend
5829730127 line 2022-06-04 22:14:00 -07:00
AJ Friend
b787da973f just good taste, really 2022-06-04 22:09:48 -07:00
AJ Friend
f70f1163bb good ol' fashioned detective work will catch the crook 2022-06-04 22:06:33 -07:00
AJ Friend
5e02924c6e and this one gives an error. the game is afoot. 2022-06-04 22:04:51 -07:00
AJ Friend
b74f7ef584 so, check this out: this works 2022-06-04 22:02:01 -07:00
AJ Friend
fd8a9c2616 thinking thoughts 2022-06-04 21:56:45 -07:00
AJ Friend
b0b0472f75 mysteries abound! 2022-06-04 21:54:33 -07:00
AJ Friend
c38be89b26 ring and children 2022-06-04 21:42:37 -07:00
AJ Friend
f8a65051d8 the mystery of the int[:] distances 2022-06-04 21:22:50 -07:00
AJ Friend
6f62aab5c6 int_mv rides into town 2022-06-04 21:07:08 -07:00
AJ Friend
ffb8c8a3c1 hmm 2022-06-04 20:39:09 -07:00
AJ Friend
0daa79be3e H3Index -> H3int 2022-06-04 20:27:15 -07:00
AJ Friend
34b7eed770 hmmmmmmm 2022-06-04 20:15:36 -07:00
AJ Friend
572a09b08c initial commit 2022-06-04 20:10:10 -07:00
AJ Friend
cfbd892780
remove h3fake2 transitional library (#257) 2022-06-02 18:11:17 -07:00
AJ Friend
075da76539
Fix sdist build (#239)
* make sure `make_sdist` CI job still broken

* reproduce locally

* update h3lib

* still seems broken

* try sdist on mac and ubuntu

* pyest!

* debugging

* ensurepath

* Disable building docs

* just build sdist once

* colon

Co-authored-by: Isaac Brodsky <isaac@unfolded.ai>
2022-06-02 17:10:41 -07:00
Isaac Brodsky
75fb4c7046
v4: convert edge from h3fake2 (#253)
* v4: convert edge from h3fake2

* on error not neighbors

* except *

* check for neighbor error
2022-06-02 15:44:24 -07:00
Isaac Brodsky
dc9c011dde
v4: geo boundary, set to multi polygon (#255)
* v4: cell boundary

* v4: h3_set_to_multi_polygon
2022-06-01 17:42:02 -04:00
Isaac Brodsky
c5333321e9
v4: polygonToCells (#254) 2022-05-31 19:01:51 -07:00
AJ Friend
51e73fe01b
Uncomment cython example, and exclude sdist from wheels test temporarilty (#252)
* uncomment cython test

* exclude make_sdist temporarily from the wheels tests
2022-05-26 14:15:35 -04:00
AJ Friend
610d648bfe
ring (#251) 2022-05-25 21:45:26 -07:00
Isaac Brodsky
7abaf49b19
v4: local ij functions to v4 cython (#240)
* move local ij functions to v4 implementation

* revert some changes and add gridPathCells

* swap implementation

* revert gridPathCells
2022-05-25 17:09:36 -07:00
AJ Friend
f2253cfb30
get_faces (#248)
* initial pass

* thoughts

* the results of thinking

* this commit is associated with the previous commits

* nogil

* i'm a bill

* remove the typical nonsense
2022-05-25 11:14:55 -07:00
AJ Friend
4ec0a92f10
ajfriend/more v4 funcs (#241)
* get_pentagon_indexes and get_res0_indexes

* line

* cell area functions
2022-05-24 20:18:44 -07:00
AJ Friend
298f17faae
WIP: Starting work on v4, The Sequel (#238)
* cimport for h3fake2 doesn't seem to work

* back to where we were

* meh, close to what i was hoping for

* h3fake2 in github actions

* comment out current bindings that consume the h3c v3 library

* don't need the coveragerc file at the moment; clear out c files in /tests

* sdist needs h3fake2

* try CIBW_BEFORE_BUILD to get h3fake2

* need h3fake2 for cibuildwheel tests

* update h3 C library

* comment out most of h3lib.pxd

* calling from v4 c lib works! (tests dont' work yet tho)

* tests shall pass

* starting to move over first few functions

* little steps

* util submodule fully moved over; some hackery with h3fake2 errors

* getting even trickier with h3fake2 errors

* few more simple functions

* geo_to_h3 and h3_to_geo

* grid_distance function

* grid_disk

* parents and kids

* compact/uncompact

* getNumCells

* comment out sdist test temporarily

* commenting out `make_sdist` seems to have turned off the other CI jobs

* no, it was that we're pushing to the dev branch

* keep the sdist job in there, but commented out
2022-05-19 16:48:25 -07:00
109 changed files with 5032 additions and 7904 deletions

89
.gitignore vendored

Some files were not shown because too many files have changed in this diff Show more