Skip to content

Commit

Permalink
Use functions instead of methods for the interface functions (#334)
Browse files Browse the repository at this point in the history
* starting refactor

* remove stuff

* unindent

* remove self from function signatures

* remove self.

* remove staticmethod

* set up symlinks

* some linting

* test for bad H3Shape

* symlink note

* just put everything in __init__.py

* reorganize conversion functions

* rename _api_funcs.py to _convert.py

* use lazy import of numpy so we don't have to special case h3.api.numpy_int

* DRY
  • Loading branch information
ajfriend authored Jan 1, 2024
1 parent 831d50b commit 158f52d
Show file tree
Hide file tree
Showing 21 changed files with 1,022 additions and 1,203 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[run]
omit =
*/h3/api/basic_int/__init__.py
*/h3/api/memview_int/__init__.py
*/h3/api/numpy_int/__init__.py
1 change: 1 addition & 0 deletions src/h3/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
from . import basic_int
from . import basic_str
from . import memview_int
from . import numpy_int
Loading

0 comments on commit 158f52d

Please sign in to comment.