Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions posts/2026/artemis_2_eclipse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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)
Expand Down
Loading