Skip to content

fix: drop stale astropy cap + stale cosmology docstrings - #558

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/astropy-cap-bump
Aug 6, 2026
Merged

fix: drop stale astropy cap + stale cosmology docstrings#558
Jammy2211 merged 1 commit into
mainfrom
feature/astropy-cap-bump

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Sibling of the PyAutoArray astropy-floor PR: drop the stale <=7.2.0 astropy cap, keeping astropy>=5.0 (floors, not pins). Also corrects three stale docstrings in autogalaxy/cosmology/model.py: the cosmology is a native xp (NumPy/JAX) implementation, but two methods still claimed to "return only the value of the astropy function it wraps", and critical_density carried a conversational porting note. The accurate astropy parity statements (value-matching astropy.cosmology) are deliberately kept — they document a real compatibility contract.

Part of PyAutoLabs/PyAutoArray#434.

API Changes

None — internal changes only.

Test Plan

  • pytest test_autogalaxy/ — 1027 passed under astropy 8.0.1
  • Clean-venv pip install --dry-run on the sibling PyAutoArray change: resolves astropy 8.0.1 (control on capped main: 7.2.0)
  • FITS-loaded imaging fit smoke (ag.Imaging.from_fits + ag.FitImaging) under astropy 8.0.1
Full API Changes (for automation & release notes)

None — dependency-metadata change (pyproject.toml astropy specifier >=5.0,<=7.2.0>=5.0) plus docstring-only edits in autogalaxy/cosmology/model.py (no signature or behaviour changes).

Generated by the PyAutoLabs agent workflow.

Same floor change as PyAutoArray (astropy>=5.0, cap dropped). Also corrects
three stale docstrings in autogalaxy/cosmology/model.py that still described
the native xp implementation as wrapping astropy functions.

Part of PyAutoLabs/PyAutoArray#434.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Aug 6, 2026
@Jammy2211
Jammy2211 merged commit bfc766e into main Aug 6, 2026
@Jammy2211
Jammy2211 deleted the feature/astropy-cap-bump branch August 6, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant