Skip to content

Commit 8d4937e

Browse files
authored
Merge pull request #528 from PyAutoLabs/feature/archive-quantity-package
refactor: archive quantity package to autolens_workspace_developer/legacy
2 parents a91febc + 5d2dbda commit 8d4937e

19 files changed

Lines changed: 26 additions & 427 deletions

File tree

CLAUDE.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ autolens/
8282
imaging/ FitImaging, AnalysisImaging
8383
interferometer/ FitInterferometer, AnalysisInterferometer
8484
point/ Point-source datasets, fits, and analysis
85-
quantity/ FitQuantity for arbitrary lensing quantities
8685
analysis/ Shared analysis base classes, adapt images
8786
aggregator/ Scraping results from autofit output directories
8887
plot/ Visualisation for all data types
@@ -156,26 +155,26 @@ When importing `autolens as al`:
156155
## Line Endings — Always Unix (LF)
157156

158157
All files **must use Unix line endings (LF, `\n`)**. Never write `\r\n` line endings.
159-
## Never rewrite history
160-
161-
NEVER perform these operations on any repo with a remote:
162-
163-
- `git init` in a directory already tracked by git
164-
- `rm -rf .git && git init`
165-
- Commit with subject "Initial commit", "Fresh start", "Start fresh", "Reset
166-
for AI workflow", or any equivalent message on a branch with a remote
167-
- `git push --force` to `main` (or any branch tracked as `origin/HEAD`)
168-
- `git filter-repo` / `git filter-branch` on shared branches
169-
- `git rebase -i` rewriting commits already pushed to a shared branch
170-
171-
If the working tree needs a clean state, the **only** correct sequence is:
172-
173-
git fetch origin
174-
git reset --hard origin/main
175-
git clean -fd
176-
177-
This applies equally to humans, local Claude Code, cloud Claude agents, Codex,
178-
and any other agent. The "Initial commit — fresh start for AI workflow" pattern
179-
that appeared independently on origin and local for three workspace repos is
180-
exactly what this rule prevents — it costs ~40 commits of redundant local work
181-
every time it happens.
158+
## Never rewrite history
159+
160+
NEVER perform these operations on any repo with a remote:
161+
162+
- `git init` in a directory already tracked by git
163+
- `rm -rf .git && git init`
164+
- Commit with subject "Initial commit", "Fresh start", "Start fresh", "Reset
165+
for AI workflow", or any equivalent message on a branch with a remote
166+
- `git push --force` to `main` (or any branch tracked as `origin/HEAD`)
167+
- `git filter-repo` / `git filter-branch` on shared branches
168+
- `git rebase -i` rewriting commits already pushed to a shared branch
169+
170+
If the working tree needs a clean state, the **only** correct sequence is:
171+
172+
git fetch origin
173+
git reset --hard origin/main
174+
git clean -fd
175+
176+
This applies equally to humans, local Claude Code, cloud Claude agents, Codex,
177+
and any other agent. The "Initial commit — fresh start for AI workflow" pattern
178+
that appeared independently on origin and local for three workspace repos is
179+
exactly what this rule prevents — it costs ~40 commits of redundant local work
180+
every time it happens.

autolens/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
from autogalaxy.galaxy.galaxy_model_csv import galaxy_af_models_from_csv_tables
7272
from autogalaxy.galaxy.redshift import Redshift
7373

74-
from autogalaxy.quantity.dataset_quantity import DatasetQuantity
7574
from autogalaxy.profiles.geometry_profiles import EllProfile
7675
from autogalaxy.profiles import (
7776
point_sources as ps,
@@ -92,7 +91,6 @@
9291
from autogalaxy.profiles.light.linear import LightProfileLinearObjFuncList
9392
from autogalaxy.operate.image import OperateImage
9493
from autogalaxy.operate.lens_calc import LensCalc
95-
from autogalaxy.quantity.dataset_quantity import DatasetQuantity
9694
from autogalaxy import convert
9795

9896
from . import aggregator as agg
@@ -125,8 +123,6 @@
125123
from .point.model.analysis import AnalysisPoint
126124
from .point.solver import PointSolver
127125
from .point.solver.shape_solver import ShapeSolver
128-
from .quantity.fit_quantity import FitQuantity
129-
from .quantity.model.analysis import AnalysisQuantity
130126
from .weak.dataset import WeakDataset
131127
from .weak.fit import FitWeak
132128
from .weak.simulator import SimulatorShearYX

autolens/analysis/analysis/lens.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Lensing-specific mixin for all **PyAutoLens** ``Analysis`` classes.
33
44
``AnalysisLens`` is a mixin that adds lensing-specific behaviour to any analysis class.
5-
It is inherited (alongside dataset-specific base classes) by ``AnalysisDataset``,
6-
``AnalysisPoint``, and ``AnalysisQuantity``.
5+
It is inherited (alongside dataset-specific base classes) by ``AnalysisDataset``
6+
and ``AnalysisPoint``.
77
88
Key responsibilities:
99

autolens/config/visualize/plots.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ fit_ellipse: # Settings for plots of ellipse fitti
6161
data : true # Plot the data of the ellipse fit?
6262
data_no_ellipse: true # Plot the data without the black data ellipses, which obscure noisy data?
6363

64-
fit_quantity: # Settings for plots of fit quantities (e.g. FitQuantity).
65-
subplot_fit: true
66-
6764
galaxies: # Settings for plots of galaxies (e.g. Galaxies).
6865
subplot_galaxies: true # Plot subplot of all quantities in each galaxies group (e.g. images, convergence)?
6966
subplot_galaxy_images: false # Plot subplot of the image of each galaxy in the model?

autolens/plot/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
subplot_fit_imaging_of_galaxy,
3535
subplot_fit_dirty_images,
3636
subplot_fit_real_space,
37-
subplot_fit_quantity,
3837
subplot_fit_ellipse,
3938
subplot_ellipse_errors,
4039
)

autolens/quantity/__init__.py

Whitespace-only changes.

autolens/quantity/fit_quantity.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

autolens/quantity/model/__init__.py

Whitespace-only changes.

autolens/quantity/model/analysis.py

Lines changed: 0 additions & 91 deletions
This file was deleted.

autolens/quantity/model/result.py

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)