Skip to content

Commit f0d4e2b

Browse files
committed
Fix Title import and clean stale wrap config entries
- Remove Title import from abstract_plotters.py (Title class deleted from autoarray) - Change title type annotation to plain str - Clean test_autogalaxy/config/visualize.yaml: remove mat_wrap_1d and mat_wrap_2d sections (all entries reference deleted wrap classes) and trim mat_wrap to just Cmap and Colorbar entries https://claude.ai/code/session_0154SgR1ThCsfpbMZLnbS85k
1 parent 6024a9a commit f0d4e2b

2 files changed

Lines changed: 7 additions & 312 deletions

File tree

autogalaxy/plot/abstract_plotters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from autoarray.plot.abstract_plotters import AbstractPlotter
66
from autoarray.plot.wrap.base.output import Output
77
from autoarray.plot.wrap.base.cmap import Cmap
8-
from autoarray.plot.wrap.base.title import Title
98

109

1110
def _to_lines(*items):
@@ -61,7 +60,7 @@ def __init__(
6160
output: Output = None,
6261
cmap: Cmap = None,
6362
use_log10: bool = False,
64-
title: Title = None,
63+
title: str = None,
6564
):
6665
super().__init__(output=output, cmap=cmap, use_log10=use_log10, title=title)
6766

test_autogalaxy/config/visualize.yaml

Lines changed: 6 additions & 310 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ general:
44
imshow_origin: upper
55
zoom_around_mask: true
66
mat_wrap:
7-
Axis:
8-
figure:
9-
emit: true
10-
subplot:
11-
emit: false
127
Cmap:
138
figure:
149
cmap: default
@@ -31,328 +26,29 @@ mat_wrap:
3126
subplot:
3227
fraction: 0.1
3328
pad: 0.2
34-
ColorbarTickParams:
35-
figure:
36-
labelsize: 1
37-
subplot:
38-
labelsize: 1
39-
Figure:
40-
figure:
41-
aspect: square
42-
figsize: (7,7)
43-
subplot:
44-
aspect: square
45-
figsize: auto
46-
Legend:
47-
figure:
48-
fontsize: 12
49-
include: true
50-
subplot:
51-
fontsize: 13
52-
include: false
53-
Text:
54-
figure:
55-
fontsize: 16
56-
subplot:
57-
fontsize: 10
58-
TickParams:
59-
figure:
60-
labelsize: 16
61-
subplot:
62-
labelsize: 10
63-
Title:
64-
figure:
65-
fontsize: 11
66-
subplot:
67-
fontsize: 15
68-
XLabel:
69-
figure:
70-
fontsize: 3
71-
subplot:
72-
fontsize: 4
73-
XTicks:
74-
figure:
75-
fontsize: 17
76-
subplot:
77-
fontsize: 11
78-
YLabel:
79-
figure:
80-
fontsize: 1
81-
subplot:
82-
fontsize: 2
83-
YTicks:
84-
figure:
85-
fontsize: 16
86-
subplot:
87-
fontsize: 10
88-
mat_wrap_1d:
89-
AXVLine:
90-
figure:
91-
c: k
92-
ymin: 0.5
93-
subplot:
94-
c: k
95-
ymin: 0.6
96-
FillBetween:
97-
figure:
98-
alpha: 0.6
99-
color: k
100-
subplot:
101-
alpha: 0.5
102-
color: k
103-
YXPlot:
104-
figure:
105-
c: k
106-
linestyle: '-'
107-
linewidth: 3
108-
subplot:
109-
c: k
110-
linestyle: '-'
111-
linewidth: 1
112-
YXScatter:
113-
figure:
114-
c: k
115-
marker: .
116-
subplot:
117-
c: k
118-
marker: x
119-
EinsteinRadiusAXVLine:
120-
figure: {}
121-
subplot: {}
122-
HalfLightRadiusAXVLine:
123-
figure: {}
124-
subplot: {}
125-
mat_wrap_2d:
126-
ArrayOverlay:
127-
figure:
128-
alpha: 0.5
129-
subplot:
130-
alpha: 0.7
131-
BorderScatter:
132-
figure:
133-
c: c
134-
marker: +
135-
s: 13
136-
subplot:
137-
c: k
138-
marker: .
139-
s: 7
140-
GridErrorbar:
141-
figure:
142-
c: k
143-
marker: o
144-
subplot:
145-
c: b
146-
marker: .
147-
GridPlot:
148-
figure:
149-
c: k
150-
linestyle: '-'
151-
linewidth: 3
152-
subplot:
153-
c: k
154-
linestyle: '-'
155-
linewidth: 1
156-
GridScatter:
157-
figure:
158-
c: y
159-
marker: x
160-
s: 14
161-
subplot:
162-
c: r
163-
marker: .
164-
s: 6
165-
IndexScatter:
166-
figure:
167-
c: r,g,b,y,k,w
168-
marker: .
169-
s: 20
170-
subplot:
171-
c: r,g,b,y,w,k
172-
marker: +
173-
s: 21
174-
MaskScatter:
175-
figure:
176-
c: g
177-
marker: .
178-
s: 12
179-
subplot:
180-
c: w
181-
marker: .
182-
s: 8
183-
MeshGridScatter:
184-
figure:
185-
c: r
186-
marker: .
187-
s: 5
188-
subplot:
189-
c: g
190-
marker: o
191-
s: 6
192-
OriginScatter:
193-
figure:
194-
c: k
195-
marker: x
196-
s: 80
197-
subplot:
198-
c: r
199-
marker: .
200-
s: 81
201-
ParallelOverscanPlot:
202-
figure:
203-
c: k
204-
linestyle: '-'
205-
linewidth: 1
206-
subplot:
207-
c: k
208-
linestyle: '-'
209-
linewidth: 1
210-
PatchOverlay:
211-
figure:
212-
edgecolor: c
213-
facecolor: null
214-
subplot:
215-
edgecolor: y
216-
facecolor: null
217-
PositionsScatter:
218-
figure:
219-
c: r,g,b
220-
marker: o
221-
s: 15
222-
subplot:
223-
c: c,g,b
224-
marker: .
225-
s: 5
226-
SerialOverscanPlot:
227-
figure:
228-
c: k
229-
linestyle: '-'
230-
linewidth: 2
231-
subplot:
232-
c: k
233-
linestyle: '-'
234-
linewidth: 1
235-
SerialPrescanPlot:
236-
figure:
237-
c: k
238-
linestyle: '-'
239-
linewidth: 3
240-
subplot:
241-
c: k
242-
linestyle: '-'
243-
linewidth: 1
244-
VectorYXQuiver:
245-
figure:
246-
alpha: 1.0
247-
angles: xy
248-
headlength: 0
249-
headwidth: 1
250-
linewidth: 5
251-
pivot: middle
252-
units: xy
253-
subplot:
254-
alpha: 1.1
255-
angles: xy1
256-
headlength: 0.1
257-
headwidth: 11
258-
linewidth: 51
259-
pivot: middle1
260-
units: xy1
261-
VoronoiDrawer:
262-
figure:
263-
alpha: 0.7
264-
edgecolor: k
265-
linewidth: 0.3
266-
subplot:
267-
alpha: 0.5
268-
edgecolor: r
269-
linewidth: 1.0
270-
TangentialCausticsPlot:
271-
figure:
272-
c: w,g
273-
linestyle: --
274-
linewidth: 5
275-
subplot:
276-
c: g
277-
linestyle: --
278-
linewidth: 7
279-
TangentialCriticalCurvesPlot:
280-
figure:
281-
c: w,k
282-
linestyle: '-'
283-
linewidth: 4
284-
subplot:
285-
c: b
286-
linestyle: '-'
287-
linewidth: 6
288-
RadialCausticsPlot:
289-
figure:
290-
c: w,g
291-
linestyle: --
292-
linewidth: 5
293-
subplot:
294-
c: g
295-
linestyle: --
296-
linewidth: 7
297-
RadialCriticalCurvesPlot:
298-
figure:
299-
c: w,k
300-
linestyle: '-'
301-
linewidth: 4
302-
subplot:
303-
c: b
304-
linestyle: '-'
305-
linewidth: 6
306-
LightProfileCentresScatter:
307-
figure:
308-
c: k,r
309-
marker: +
310-
s: 1
311-
subplot:
312-
c: b
313-
marker: .
314-
s: 15
315-
MassProfileCentresScatter:
316-
figure:
317-
c: r,k
318-
marker: x
319-
s: 2
320-
subplot:
321-
c: k
322-
marker: o
323-
s: 16
324-
MultipleImagesScatter:
325-
figure:
326-
c: k,w
327-
marker: o
328-
s: 3
329-
subplot:
330-
c: g
331-
marker: .
332-
s: 17
33329
plots:
33430
fits_are_zoomed: true
33531
dataset:
33632
subplot_dataset: true
33733
fit:
33834
subplot_fit: true
33935
subplot_of_galaxies: false
340-
fits_fit: true # Output a .fits file containing the fit model data, residual map, normalized residual map and chi-squared?
341-
fits_galaxy_images : true # Output a .fits file containing the images (e.g. without PSF convolution) of every galaxy?
342-
fits_model_galaxy_images : true # Output a .fits file containing the model images (e.g. with PSF convolution) of every galaxy?
36+
fits_fit: true
37+
fits_galaxy_images : true
38+
fits_model_galaxy_images : true
34339
fit_imaging: {}
34440
fit_interferometer:
345-
fits_dirty_images: true # output dirty_images.fits showing the dirty image, noise-map, model-data, resiual-map, normalized residual map and chi-squared map?
41+
fits_dirty_images: true
34642
fit_quantity:
34743
subplot_fit: false
34844
adapt:
34945
subplot_adapt_images: true
35046
inversion:
35147
subplot_inversion: true
352-
csv_reconstruction: true # output reconstruction_mesh.fits containing the reconstructed pixelization and noise map on the source-plane mesh?
48+
csv_reconstruction: true
35349
galaxies:
35450
subplot_galaxies: true
35551
subplot_galaxy_images: true
356-
fits_galaxy_images: true # Output a .fits file containing images of every galaxy?
52+
fits_galaxy_images: true
35753
positions:
35854
image_with_positions: true

0 commit comments

Comments
 (0)