From f471506691894169e4cc9109c687b90deaf71135 Mon Sep 17 00:00:00 2001 From: leakec Date: Wed, 20 Aug 2025 09:48:08 -0700 Subject: [PATCH 1/2] Removing deprecated BatchTracer that doesn't appear to be needed anymore. --- src/tfc/mtfc.py | 5 +---- src/tfc/utfc.py | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/tfc/mtfc.py b/src/tfc/mtfc.py index 8a0649d..748e9b6 100644 --- a/src/tfc/mtfc.py +++ b/src/tfc/mtfc.py @@ -623,10 +623,7 @@ def H_jvp(arg_vals, arg_tans, d: tuple[int, ...] = d0, full: bool = False): out_tans = np.zeros((dim0, dim1)) for k in range(n): if not (type(arg_tans[k]) is ad.Zero): - if type(arg_tans[k]) is batching.BatchTracer: - flag = onp.any(arg_tans[k].val != 0) - else: - flag = onp.any(arg_tans[k] != 0) + flag = onp.any(arg_tans[k] != 0) if flag: dark = tuple(d[j] + 1 if k == j else d[j] for j in range(len(d))) if flat: diff --git a/src/tfc/utfc.py b/src/tfc/utfc.py index 67920e7..6441e70 100644 --- a/src/tfc/utfc.py +++ b/src/tfc/utfc.py @@ -362,10 +362,7 @@ def H_jvp(arg_vals, arg_tans, d: uint = 0, full: bool = False): x = arg_vals[0] dx = arg_tans[0] if not (dx is ad.Zero): - if type(dx) is batching.BatchTracer: - flag = onp.any(dx.val != 0) - else: - flag = onp.any(dx != 0) + flag = onp.any(dx != 0) if flag: if len(dx.shape) == 1: out_tans = Hjax(x, d=d + 1, full=full) * onp.expand_dims(dx, 1) From e5efe8d10cab84d34ca9e4cef886afac16a5cb52 Mon Sep 17 00:00:00 2001 From: leakec Date: Wed, 20 Aug 2025 09:50:10 -0700 Subject: [PATCH 2/2] Bumping version and Python versions supported. --- README.md | 2 +- pyproject.toml | 4 ++-- src/tfc/version.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 86a0e47..a4ddeb1 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ The authors of this repsitory and the associated theory have gone to lengths to author = {Carl Leake and Hunter Johnston}, title = {{TFC: A Functional Interpolation Framework}}, url = {https://github.com/leakec/tfc}, - version = {1.3.0}, + version = {1.3.1}, year = {2025}, } @article{TFC, diff --git a/pyproject.toml b/pyproject.toml index f46d5f9..d02c9fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,8 @@ build-backend = "setuptools.build_meta" [project] name = "tfc" -version = "1.3.0" -requires-python = ">=3.11,<3.14" +version = "1.3.1" +requires-python = ">=3.11" readme = "README.md" dynamic = ["dependencies", "classifiers", "authors", "license", "description"] diff --git a/src/tfc/version.py b/src/tfc/version.py index a63b911..0e16fac 100644 --- a/src/tfc/version.py +++ b/src/tfc/version.py @@ -1,4 +1,4 @@ -__version__ = "1.3.0" +__version__ = "1.3.1" def _version_as_tuple(version_str: str) -> tuple[int, ...]: