Skip to content

Commit

Permalink
Skip numba modules on python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Jan 29, 2024
1 parent 66ad1e9 commit 6ec6cb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vector/backends/_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import vector._compute.planar
import vector._compute.spatial

__doctest_requires__ = {("*"): ["numba"]}

names_and_modules = [
("planar", vector._compute.planar),
("spatial", vector._compute.spatial),
Expand Down
2 changes: 2 additions & 0 deletions src/vector/backends/_numba_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
_coord_object_type,
)

__doctest_requires__ = {("*"): ["numba"]}


@numba.extending.overload(numpy.nan_to_num) # FIXME: This needs to go into Numba!
def nan_to_num(x, copy=True, nan=0.0, posinf=None, neginf=None):
Expand Down

0 comments on commit 6ec6cb0

Please sign in to comment.