Skip to content

Commit

Permalink
chore: update pre-commit hooks (#151)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1)
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.1.14](astral-sh/ruff-pre-commit@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 <landungs@uw.edu>
  • Loading branch information
pre-commit-ci[bot] and lsetiawan authored Jan 30, 2024
1 parent 7245d0c commit d4780e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: "23.12.1"
rev: "24.1.1"
hooks:
- id: black-jupyter

Expand Down
4 changes: 1 addition & 3 deletions src/caustics/lenses/multiplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4780e6

Please sign in to comment.