Skip to content

Commit

Permalink
ENH: New functions lazy_raise, lazy_warn, and lazy_wait_on
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Jan 29, 2025
1 parent de67dc1 commit ccffddf
Show file tree
Hide file tree
Showing 9 changed files with 386 additions and 47 deletions.
3 changes: 3 additions & 0 deletions docs/api-lazy.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ lazy backends, e.g. Dask or Jax:
:toctree: generated
lazy_apply
lazy_raise
lazy_wait_on
lazy_warn
testing.lazy_xp_function
testing.patch_lazy_xp_functions
```
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"numpy": ("https://numpy.org/doc/stable", None),
"dask": ("https://docs.dask.org/en/stable", None),
"jax": ("https://jax.readthedocs.io/en/latest", None),
"equinox": ("https://docs.kidger.site/equinox/", None),
}

nitpick_ignore = [
Expand Down
86 changes: 42 additions & 44 deletions pixi.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = ["array-api-compat>=1.10.0,<2"]
# dependencies = ["array-api-compat>=1.10.0,<2"] # DNM

[project.urls]
Homepage = "https://github.com/data-apis/array-api-extra"
Expand All @@ -48,10 +48,11 @@ platforms = ["linux-64", "osx-arm64", "win-64"]

[tool.pixi.dependencies]
python = ">=3.10,<3.14"
array-api-compat = ">=1.10.0,<2"
# array-api-compat = ">=1.10.0,<2" # DNM

[tool.pixi.pypi-dependencies]
array-api-extra = { path = ".", editable = true }
array-api-compat = { git = "https://github.com/data-apis/array-api-compat" } # DNM

[tool.pixi.feature.lint.dependencies]
typing-extensions = "*"
Expand Down
5 changes: 4 additions & 1 deletion src/array_api_extra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setdiff1d,
sinc,
)
from ._lib._lazy import lazy_apply
from ._lib._lazy import lazy_apply, lazy_raise, lazy_wait_on, lazy_warn

__version__ = "0.6.1.dev0"

Expand All @@ -27,6 +27,9 @@
"isclose",
"kron",
"lazy_apply",
"lazy_raise",
"lazy_wait_on",
"lazy_warn",
"nunique",
"pad",
"setdiff1d",
Expand Down
Loading

0 comments on commit ccffddf

Please sign in to comment.