From 88242a03cbfc4c7456a05d4b4815c0e51fac1985 Mon Sep 17 00:00:00 2001 From: Jim Pivarski Date: Wed, 27 Dec 2023 13:22:23 -0600 Subject: [PATCH] feat: add constants. --- src/ragged/common/_const.py | 11 +++++++++++ src/ragged/v202212/_const.py | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/ragged/common/_const.py create mode 100644 src/ragged/v202212/_const.py diff --git a/src/ragged/common/_const.py b/src/ragged/common/_const.py new file mode 100644 index 0000000..362ee71 --- /dev/null +++ b/src/ragged/common/_const.py @@ -0,0 +1,11 @@ +# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE + +""" +https://data-apis.org/array-api/latest/API_specification/constants.html +""" + +from __future__ import annotations + +from numpy import e, inf, nan, newaxis, pi + +__all__ = ["e", "inf", "nan", "newaxis", "pi"] diff --git a/src/ragged/v202212/_const.py b/src/ragged/v202212/_const.py new file mode 100644 index 0000000..d55ef49 --- /dev/null +++ b/src/ragged/v202212/_const.py @@ -0,0 +1,11 @@ +# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE + +""" +https://data-apis.org/array-api/2022.12/API_specification/constants.html +""" + +from __future__ import annotations + +from ..common._const import e, inf, nan, newaxis, pi + +__all__ = ["e", "inf", "nan", "newaxis", "pi"]