Commit 33b780a
Fix off-by-one variable names in test__lp_linear_func_galaxy_dict_from
The test sets up galaxy_linear_2 with lp_linear_2 and galaxy_linear_3's
basis with [lp_linear_3, lp_linear_4], but asserted lp_linear_3 and
lp_linear_4 at positions that should be lp_linear_2 and lp_linear_3.
The bug was hidden because GeometryProfile.__eq__ compared __dict__
structurally and parameter-less LightProfileLinear() instances were
all equal to each other.
Exposed by the LightProfileLinear pytree_token-based __eq__ in
PyAutoGalaxy which makes each instance uniquely equal only to itself.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent da0ab64 commit 33b780a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
| 112 | + | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments