From dbdc09e6ac31651934a1144d78a58058d121f2c4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 21:16:40 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.16.1 → v0.16.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.16.1...v0.16.6) - [github.com/PyCQA/autoflake: v2.3.3 → v2.4.0](https://github.com/PyCQA/autoflake/compare/v2.3.3...v2.4.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 104c0db0..6b755e19 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,13 +4,13 @@ ci: autoupdate_schedule: "monthly" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.16.1" + rev: "v0.16.6" hooks: - id: ruff args: ["--fix", "--unsafe-fixes"] - id: ruff-format - repo: https://github.com/PyCQA/autoflake - rev: v2.3.3 + rev: v2.4.0 hooks: - id: autoflake args: From 6d3c7571b20151deba52a25b179916371e480bf1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 21:16:50 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- posts/2026/artemis_2_eclipse.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/posts/2026/artemis_2_eclipse.md b/posts/2026/artemis_2_eclipse.md index 52f0091e..5c52f913 100644 --- a/posts/2026/artemis_2_eclipse.md +++ b/posts/2026/artemis_2_eclipse.md @@ -73,7 +73,7 @@ As with the trajectory above, we use [JPL Horizons](https://ssd.jpl.nasa.gov/hor ```python from sunpy.coordinates import get_horizons_coord -artemis2_coord = get_horizons_coord("Artemis II" , "2026-04-07 01:06:19") +artemis2_coord = get_horizons_coord("Artemis II", "2026-04-07 01:06:19") ``` ### Locate the Moon @@ -90,7 +90,7 @@ from skimage.transform import hough_circle, hough_circle_peaks edges = canny(eclipse_image, sigma=2) h, w = eclipse_image.shape -radii = np.arange(0.25*h, 0.4*h, 10) +radii = np.arange(0.25 * h, 0.4 * h, 10) hough_res = hough_circle(edges, radii) accums, cx, cy, rad = hough_circle_peaks(hough_res, radii, total_num_peaks=1) @@ -112,7 +112,7 @@ from astropy.coordinates import SkyCoord import astropy.units as u moon = SkyCoord(coords["moon"], observer=coords["artemis_ii"]) -R_moon = 0.2725076 * u.R_earth # IAU mean radius +R_moon = 0.2725076 * u.R_earth # IAU mean radius dist_moon = SkyCoord(coords["artemis_ii"]).separation_3d(moon) moon_angular_width = np.arcsin(R_moon / dist_moon).to(u.arcsec)