Skip to content
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

Grab betainc in _special.py since the btdtr alias was removed. #114

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/numba_stats/_special.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ def get(name, signature):
from scipy.special import cython_special

# scipy-1.12 started to provide fused versions for some special functions
fuse_name = f"__pyx_fuse_1{name}"
if name == "betainc":
fuse_name = f"__pyx_fuse_0{name}"
else:
fuse_name = f"__pyx_fuse_1{name}"
if fuse_name not in cython_special.__pyx_capi__:
fuse_name = name

Expand Down Expand Up @@ -39,5 +42,4 @@ def get(name, signature):
voigt_profile = get("voigt_profile", float64(float64, float64, float64))
xlogy = get("xlogy", float64(float64, float64))
xlog1py = get("xlog1py", float64(float64, float64))
# for some reason, getting betainc directly does not work! btdtr is an alias
betainc = get("btdtr", float64(float64, float64, float64))
betainc = get("betainc", float64(float64, float64, float64))
Loading