From 77db154768e54e585305f1a9a13ce31bcaa4964f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:03:36 -0500 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- src/exoplanet_core/jax/ops.py | 6 +++--- src/exoplanet_core/pymc/ops.py | 2 ++ src/exoplanet_core/pymc3/ops.py | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1326ecd..b59f60d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,6 @@ repos: additional_dependencies: [toml] - repo: https://github.com/psf/black - rev: "23.12.1" + rev: "24.1.1" hooks: - id: black diff --git a/src/exoplanet_core/jax/ops.py b/src/exoplanet_core/jax/ops.py index 74e50bc..e0bcfa9 100644 --- a/src/exoplanet_core/jax/ops.py +++ b/src/exoplanet_core/jax/ops.py @@ -317,9 +317,9 @@ def _quad_solution_vector_batch(args, axes): quad_solution_vector_prim ] = _quad_solution_vector_gpu_translation_rule ad.primitive_jvps[quad_solution_vector_prim] = _quad_solution_vector_jvp -batching.primitive_batchers[ - quad_solution_vector_prim -] = _quad_solution_vector_batch +batching.primitive_batchers[quad_solution_vector_prim] = ( + _quad_solution_vector_batch +) # ****************** diff --git a/src/exoplanet_core/pymc/ops.py b/src/exoplanet_core/pymc/ops.py index a85481e..6ee28cb 100644 --- a/src/exoplanet_core/pymc/ops.py +++ b/src/exoplanet_core/pymc/ops.py @@ -57,6 +57,7 @@ class Kepler(op.Op): (cos(f), sin(f)): The cosine and sine of the true anomaly ``f``. """ + __props__ = () def make_node(self, M, ecc): @@ -133,6 +134,7 @@ class QuadSolutionVector(op.Op): of ``b`` or ``r``. """ + __props__ = () def make_node(self, b, r): diff --git a/src/exoplanet_core/pymc3/ops.py b/src/exoplanet_core/pymc3/ops.py index 844c855..b984d99 100644 --- a/src/exoplanet_core/pymc3/ops.py +++ b/src/exoplanet_core/pymc3/ops.py @@ -57,6 +57,7 @@ class Kepler(op.Op): (cos(f), sin(f)): The cosine and sine of the true anomaly ``f``. """ + __props__ = () def make_node(self, M, ecc): @@ -129,6 +130,7 @@ class QuadSolutionVector(op.Op): of ``b`` or ``r``. """ + __props__ = () def make_node(self, b, r):