Skip to content

Commit af95eef

Browse files
Jammy2211claude
authored andcommitted
Use configurable output_format default from autoarray config
Change all output_format defaults from "png" to None, resolved at runtime via autoarray's _conf_output_format() which reads from general.yaml. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent abd5816 commit af95eef

7 files changed

Lines changed: 22 additions & 22 deletions

File tree

autolens/imaging/plot/fit_imaging_plots.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def _plot_source_plane(fit, ax, plane_index, zoom_to_brightest=True,
183183
def subplot_fit(
184184
fit,
185185
output_path: Optional[str] = None,
186-
output_format: str = "png",
186+
output_format: str = None,
187187
colormap: Optional[str] = None,
188188
plane_index: Optional[int] = None,
189189
image_plane_lines=None,
@@ -327,7 +327,7 @@ def subplot_fit(
327327
def subplot_fit_x1_plane(
328328
fit,
329329
output_path: Optional[str] = None,
330-
output_format: str = "png",
330+
output_format: str = None,
331331
colormap: Optional[str] = None,
332332
):
333333
"""
@@ -391,7 +391,7 @@ def subplot_fit_x1_plane(
391391
def subplot_fit_log10(
392392
fit,
393393
output_path: Optional[str] = None,
394-
output_format: str = "png",
394+
output_format: str = None,
395395
colormap: Optional[str] = None,
396396
plane_index: Optional[int] = None,
397397
image_plane_lines=None,
@@ -515,7 +515,7 @@ def subplot_fit_log10(
515515
def subplot_fit_log10_x1_plane(
516516
fit,
517517
output_path: Optional[str] = None,
518-
output_format: str = "png",
518+
output_format: str = None,
519519
colormap: Optional[str] = None,
520520
):
521521
"""
@@ -576,7 +576,7 @@ def subplot_fit_log10_x1_plane(
576576
def subplot_of_planes(
577577
fit,
578578
output_path: Optional[str] = None,
579-
output_format: str = "png",
579+
output_format: str = None,
580580
colormap: Optional[str] = None,
581581
plane_index: Optional[int] = None,
582582
):
@@ -644,7 +644,7 @@ def subplot_of_planes(
644644
def subplot_tracer_from_fit(
645645
fit,
646646
output_path: Optional[str] = None,
647-
output_format: str = "png",
647+
output_format: str = None,
648648
colormap: Optional[str] = None,
649649
image_plane_lines=None,
650650
image_plane_line_colors=None,
@@ -769,7 +769,7 @@ def subplot_tracer_from_fit(
769769
def subplot_fit_combined(
770770
fit_list: List,
771771
output_path: Optional[str] = None,
772-
output_format: str = "png",
772+
output_format: str = None,
773773
colormap: Optional[str] = None,
774774
):
775775
"""
@@ -851,7 +851,7 @@ def subplot_fit_combined(
851851
def subplot_fit_combined_log10(
852852
fit_list: List,
853853
output_path: Optional[str] = None,
854-
output_format: str = "png",
854+
output_format: str = None,
855855
colormap: Optional[str] = None,
856856
):
857857
"""

autolens/interferometer/plot/fit_interferometer_plots.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _plot_source_plane(fit, ax, plane_index, zoom_to_brightest=True,
137137
def subplot_fit(
138138
fit,
139139
output_path: Optional[str] = None,
140-
output_format: str = "png",
140+
output_format: str = None,
141141
colormap: Optional[str] = None,
142142
image_plane_lines=None,
143143
image_plane_line_colors=None,
@@ -271,7 +271,7 @@ def subplot_fit(
271271
def subplot_fit_dirty_images(
272272
fit,
273273
output_path: Optional[str] = None,
274-
output_format: str = "png",
274+
output_format: str = None,
275275
colormap: Optional[str] = None,
276276
use_log10: bool = False,
277277
image_plane_lines=None,
@@ -328,7 +328,7 @@ def subplot_fit_dirty_images(
328328
def subplot_fit_real_space(
329329
fit,
330330
output_path: Optional[str] = None,
331-
output_format: str = "png",
331+
output_format: str = None,
332332
colormap: Optional[str] = None,
333333
source_plane_lines=None,
334334
source_plane_line_colors=None,
@@ -390,7 +390,7 @@ def subplot_fit_real_space(
390390
def subplot_tracer_from_fit(
391391
fit,
392392
output_path: Optional[str] = None,
393-
output_format: str = "png",
393+
output_format: str = None,
394394
colormap: Optional[str] = None,
395395
image_plane_lines=None,
396396
image_plane_line_colors=None,

autolens/lens/plot/sensitivity_plots.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def subplot_tracer_images(
1515
tracer_no_perturb,
1616
source_image,
1717
output_path: Optional[str] = None,
18-
output_format: str = "png",
18+
output_format: str = None,
1919
colormap: Optional[str] = None,
2020
use_log10: bool = False,
2121
):
@@ -119,7 +119,7 @@ def subplot_sensitivity(
119119
result,
120120
data_subtracted,
121121
output_path: Optional[str] = None,
122-
output_format: str = "png",
122+
output_format: str = None,
123123
colormap: Optional[str] = None,
124124
use_log10: bool = False,
125125
):
@@ -247,7 +247,7 @@ def subplot_sensitivity(
247247
def subplot_figures_of_merit_grid(
248248
result,
249249
output_path: Optional[str] = None,
250-
output_format: str = "png",
250+
output_format: str = None,
251251
colormap: Optional[str] = None,
252252
use_log_evidences: bool = True,
253253
remove_zeros: bool = True,

autolens/lens/plot/subhalo_plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def subplot_detection_imaging(
1111
result,
1212
fit_imaging_with_subhalo,
1313
output_path: Optional[str] = None,
14-
output_format: str = "png",
14+
output_format: str = None,
1515
colormap: Optional[str] = None,
1616
use_log10: bool = False,
1717
use_log_evidences: bool = True,
@@ -102,7 +102,7 @@ def subplot_detection_fits(
102102
fit_imaging_no_subhalo,
103103
fit_imaging_with_subhalo,
104104
output_path: Optional[str] = None,
105-
output_format: str = "png",
105+
output_format: str = None,
106106
colormap: Optional[str] = None,
107107
):
108108
"""

autolens/lens/plot/tracer_plots.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def subplot_tracer(
105105
tracer,
106106
grid: aa.type.Grid2DLike,
107107
output_path: Optional[str] = None,
108-
output_format: str = "png",
108+
output_format: str = None,
109109
colormap: Optional[str] = None,
110110
use_log10: bool = False,
111111
positions=None,
@@ -195,7 +195,7 @@ def subplot_lensed_images(
195195
tracer,
196196
grid: aa.type.Grid2DLike,
197197
output_path: Optional[str] = None,
198-
output_format: str = "png",
198+
output_format: str = None,
199199
colormap: Optional[str] = None,
200200
use_log10: bool = False,
201201
):
@@ -249,7 +249,7 @@ def subplot_galaxies_images(
249249
tracer,
250250
grid: aa.type.Grid2DLike,
251251
output_path: Optional[str] = None,
252-
output_format: str = "png",
252+
output_format: str = None,
253253
colormap: Optional[str] = None,
254254
use_log10: bool = False,
255255
):

autolens/point/plot/fit_point_plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def subplot_fit(
99
fit,
1010
output_path: Optional[str] = None,
11-
output_format: str = "png",
11+
output_format: str = None,
1212
image_plane_lines=None,
1313
image_plane_line_colors=None,
1414
source_plane_lines=None,

autolens/point/plot/point_dataset_plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def subplot_dataset(
99
dataset,
1010
output_path: Optional[str] = None,
11-
output_format: str = "png",
11+
output_format: str = None,
1212
):
1313
"""
1414
Produce a subplot visualising a `PointDataset`.

0 commit comments

Comments
 (0)