From d4780e679628b3b969fb590d074ca592420660d8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:07:39 -0500 Subject: [PATCH] chore: update pre-commit hooks (#151) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update pre-commit hooks updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) - [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.1.14](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.1.14) * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Don Setiawan --- .pre-commit-config.yaml | 2 +- src/caustics/lenses/multiplane.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 17eca860..b96733eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ ci: repos: - repo: https://github.com/psf/black - rev: "23.12.1" + rev: "24.1.1" hooks: - id: black-jupyter diff --git a/src/caustics/lenses/multiplane.py b/src/caustics/lenses/multiplane.py index eff1c12a..90b6f812 100644 --- a/src/caustics/lenses/multiplane.py +++ b/src/caustics/lenses/multiplane.py @@ -120,9 +120,7 @@ def _raytrace_helper( ) TD += (-tau_ij * beta_ij * arcsec_to_rad**2) * potential if geometric_time_delay: - TD += (tau_ij * arcsec_to_rad**2 * 0.5) * ( - alpha_x**2 + alpha_y**2 - ) + TD += (tau_ij * arcsec_to_rad**2 * 0.5) * (alpha_x**2 + alpha_y**2) # Propagate rays to next plane (basically eq 18) X = X + D * theta_x * arcsec_to_rad