Skip to content

refactor: archive quantity package to autolens_workspace_developer/legacy#528

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/archive-quantity-package
May 22, 2026
Merged

refactor: archive quantity package to autolens_workspace_developer/legacy#528
Jammy2211 merged 1 commit into
mainfrom
feature/archive-quantity-package

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

  • Archive the quantity package — FitQuantity, AnalysisQuantity, VisualizerQuantity, ResultQuantity — that has no real users and was blocking JAX porting work.
  • Frozen copy preserved at autolens_workspace_developer/legacy/quantity/ (separate PR on that repo).

Changes

Removed:

  • autolens/quantity/ — source tree (6 files)
  • test_autolens/quantity/ — test tree (4 files)
  • from .quantity.fit_quantity import FitQuantity + ... AnalysisQuantity from autolens/__init__.py
  • Duplicate from autogalaxy.quantity.dataset_quantity import DatasetQuantity (was imported twice at lines 74 and 95)
  • subplot_fit_quantity from the from autogalaxy.plot import (...) block in autolens/plot/__init__.py
  • dataset_quantity_7x7_array_2d + fit_quantity_7x7_array_2d @pytest.fixture entries from test_autolens/conftest.py
  • fit_quantity: stanzas from autolens/config/visualize/plots.yaml and test_autolens/config/visualize.yaml
  • AnalysisQuantity autosummary entry from docs/api/modeling.rst
  • "Quantity" section + FitQuantity autosummary from docs/api/fitting.rst
  • AnalysisQuantity mention from autolens/analysis/analysis/lens.py module docstring
  • quantity/ directory row from CLAUDE.md

Test plan

  • pytest test_autolens/ -x -q294 passed in 38s
  • Structural grep across the repo returns zero hits for FitQuantity|AnalysisQuantity|DatasetQuantity|subplot_fit_quantity|fit_quantity:|quantity_7x7
  • python -c "import autolens as al; assert not hasattr(al, 'FitQuantity')" passes for all three classes + subplot_fit_quantity

Ship order

Pairs with the PyAutoGalaxy PR (also feature/archive-quantity-package). PyAutoLens has no remaining cross-references to removed autogalaxy symbols, so the two can review in parallel — but both libraries should merge before the workspace PRs.

🤖 Generated with Claude Code

…gacy

Removed autolens/quantity/, test_autolens/quantity/, the FitQuantity /
AnalysisQuantity re-exports (including the duplicate DatasetQuantity
re-export from autogalaxy), the subplot_fit_quantity plot re-export,
config and docs stanzas, and the conftest fixtures that exercised the
deleted tests. Frozen copy lives at
autolens_workspace_developer/legacy/quantity/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 8d4937e into main May 22, 2026
6 checks passed
@Jammy2211 Jammy2211 deleted the feature/archive-quantity-package branch May 22, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant