Skip to content

Commit 6e7be6e

Browse files
Jammy2211Jammy2211
authored andcommitted
removed all reference to include in plotting
1 parent 741ff6a commit 6e7be6e

31 files changed

Lines changed: 64 additions & 643 deletions

autoarray/config/visualize/include.yaml

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

autoarray/dataset/plot/imaging_plotters.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from typing import Callable, Optional
33

44
from autoarray.plot.visuals.two_d import Visuals2D
5-
from autoarray.plot.include.two_d import Include2D
65
from autoarray.plot.mat_plot.two_d import MatPlot2D
76
from autoarray.plot.auto_labels import AutoLabels
87
from autoarray.plot.abstract_plotters import Plotter
@@ -16,7 +15,6 @@ def __init__(
1615
get_visuals_2d: Callable,
1716
mat_plot_2d: MatPlot2D = None,
1817
visuals_2d: Visuals2D = None,
19-
include_2d: Include2D = None,
2018
):
2119
"""
2220
Plots the attributes of `Imaging` objects using the matplotlib method `imshow()` and many other matplotlib
@@ -27,8 +25,7 @@ def __init__(
2725
but a user can manually input values into `MatPlot2d` to customize the figure's appearance.
2826
2927
Overlaid on the figure are visuals, contained in the `Visuals2D` object. Attributes may be extracted from
30-
the `Imaging` and plotted via the visuals object, if the corresponding entry is `True` in the `Include2D`
31-
object or the `config/visualize/include.ini` file.
28+
the `Imaging` and plotted via the visuals object.
3229
3330
Parameters
3431
----------
@@ -40,13 +37,9 @@ def __init__(
4037
Contains objects which wrap the matplotlib function calls that make 2D plots.
4138
visuals_2d
4239
Contains 2D visuals that can be overlaid on 2D plots.
43-
include_2d
44-
Specifies which attributes of the `Imaging` are extracted and plotted as visuals for 2D plots.
4540
"""
4641

47-
super().__init__(
48-
mat_plot_2d=mat_plot_2d, include_2d=include_2d, visuals_2d=visuals_2d
49-
)
42+
super().__init__(mat_plot_2d=mat_plot_2d, visuals_2d=visuals_2d)
5043

5144
self.dataset = dataset
5245
self.get_visuals_2d = get_visuals_2d
@@ -233,7 +226,6 @@ def __init__(
233226
dataset: Imaging,
234227
mat_plot_2d: MatPlot2D = None,
235228
visuals_2d: Visuals2D = None,
236-
include_2d: Include2D = None,
237229
):
238230
"""
239231
Plots the attributes of `Imaging` objects using the matplotlib method `imshow()` and many other matplotlib
@@ -244,8 +236,7 @@ def __init__(
244236
but a user can manually input values into `MatPlot2d` to customize the figure's appearance.
245237
246238
Overlaid on the figure are visuals, contained in the `Visuals2D` object. Attributes may be extracted from
247-
the `Imaging` and plotted via the visuals object, if the corresponding entry is `True` in the `Include2D`
248-
object or the `config/visualize/include.ini` file.
239+
the `Imaging` and plotted via the visuals object.
249240
250241
Parameters
251242
----------
@@ -255,21 +246,16 @@ def __init__(
255246
Contains objects which wrap the matplotlib function calls that make 2D plots.
256247
visuals_2d
257248
Contains 2D visuals that can be overlaid on 2D plots.
258-
include_2d
259-
Specifies which attributes of the `Imaging` are extracted and plotted as visuals for 2D plots.
260249
"""
261250

262-
super().__init__(
263-
mat_plot_2d=mat_plot_2d, include_2d=include_2d, visuals_2d=visuals_2d
264-
)
251+
super().__init__(mat_plot_2d=mat_plot_2d, visuals_2d=visuals_2d)
265252

266253
self.dataset = dataset
267254

268255
self._imaging_meta_plotter = ImagingPlotterMeta(
269256
dataset=self.dataset,
270257
get_visuals_2d=self.get_visuals_2d,
271258
mat_plot_2d=self.mat_plot_2d,
272-
include_2d=self.include_2d,
273259
visuals_2d=self.visuals_2d,
274260
)
275261

autoarray/dataset/plot/interferometer_plotters.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from autoarray.plot.abstract_plotters import Plotter
22
from autoarray.plot.visuals.one_d import Visuals1D
33
from autoarray.plot.visuals.two_d import Visuals2D
4-
from autoarray.plot.include.one_d import Include1D
5-
from autoarray.plot.include.two_d import Include2D
64
from autoarray.plot.mat_plot.one_d import MatPlot1D
75
from autoarray.plot.mat_plot.two_d import MatPlot2D
86
from autoarray.plot.auto_labels import AutoLabels
@@ -16,10 +14,8 @@ def __init__(
1614
dataset: Interferometer,
1715
mat_plot_1d: MatPlot1D = None,
1816
visuals_1d: Visuals1D = None,
19-
include_1d: Include1D = None,
2017
mat_plot_2d: MatPlot2D = None,
2118
visuals_2d: Visuals2D = None,
22-
include_2d: Include2D = None,
2319
):
2420
"""
2521
Plots the attributes of `Interferometer` objects using the matplotlib methods `plot()`, `scatter()` and
@@ -31,8 +27,7 @@ def __init__(
3127
customize the figure's appearance.
3228
3329
Overlaid on the figure are visuals, contained in the `Visuals1D` and `Visuals2D` objects. Attributes may be
34-
extracted from the `LightProfile` and plotted via the visuals object, if the corresponding entry is `True` in
35-
the `Include1D` or `Include2D` object or the `config/visualize/include.ini` file.
30+
extracted from the `LightProfile` and plotted via the visuals object.
3631
3732
Parameters
3833
----------
@@ -42,23 +37,17 @@ def __init__(
4237
Contains objects which wrap the matplotlib function calls that make 1D plots.
4338
visuals_1d
4439
Contains 1D visuals that can be overlaid on 1D plots.
45-
include_1d
46-
Specifies which attributes of the `Interferometer` are extracted and plotted as visuals for 1D plots.
4740
mat_plot_2d
4841
Contains objects which wrap the matplotlib function calls that make 2D plots.
4942
visuals_2d
5043
Contains 2D visuals that can be overlaid on 2D plots.
51-
include_2d
52-
Specifies which attributes of the `Interferometer` are extracted and plotted as visuals for 2D plots.
5344
"""
5445
self.dataset = dataset
5546

5647
super().__init__(
5748
mat_plot_1d=mat_plot_1d,
58-
include_1d=include_1d,
5949
visuals_1d=visuals_1d,
6050
mat_plot_2d=mat_plot_2d,
61-
include_2d=include_2d,
6251
visuals_2d=visuals_2d,
6352
)
6453

autoarray/fit/plot/fit_imaging_plotters.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from autoarray.plot.abstract_plotters import Plotter
44
from autoarray.plot.visuals.two_d import Visuals2D
5-
from autoarray.plot.include.two_d import Include2D
65
from autoarray.plot.mat_plot.two_d import MatPlot2D
76
from autoarray.plot.auto_labels import AutoLabels
87
from autoarray.fit.fit_imaging import FitImaging
@@ -15,7 +14,6 @@ def __init__(
1514
get_visuals_2d: Callable,
1615
mat_plot_2d: MatPlot2D = None,
1716
visuals_2d: Visuals2D = None,
18-
include_2d: Include2D = None,
1917
residuals_symmetric_cmap: bool = True,
2018
):
2119
"""
@@ -27,8 +25,7 @@ def __init__(
2725
but a user can manually input values into `MatPlot2d` to customize the figure's appearance.
2826
2927
Overlaid on the figure are visuals, contained in the `Visuals2D` object. Attributes may be extracted from
30-
the `FitImaging` and plotted via the visuals object, if the corresponding entry is `True` in the `Include2D`
31-
object or the `config/visualize/include.ini` file.
28+
the `FitImaging` and plotted via the visuals object.
3229
3330
Parameters
3431
----------
@@ -40,15 +37,11 @@ def __init__(
4037
Contains objects which wrap the matplotlib function calls that make the plot.
4138
visuals_2d
4239
Contains visuals that can be overlaid on the plot.
43-
include_2d
44-
Specifies which attributes of the `Array2D` are extracted and plotted as visuals.
4540
residuals_symmetric_cmap
4641
If true, the `residual_map` and `normalized_residual_map` are plotted with a symmetric color map such
4742
that `abs(vmin) = abs(vmax)`.
4843
"""
49-
super().__init__(
50-
mat_plot_2d=mat_plot_2d, include_2d=include_2d, visuals_2d=visuals_2d
51-
)
44+
super().__init__(mat_plot_2d=mat_plot_2d, visuals_2d=visuals_2d)
5245

5346
self.fit = fit
5447
self.get_visuals_2d = get_visuals_2d
@@ -244,7 +237,6 @@ def __init__(
244237
fit: FitImaging,
245238
mat_plot_2d: MatPlot2D = None,
246239
visuals_2d: Visuals2D = None,
247-
include_2d: Include2D = None,
248240
):
249241
"""
250242
Plots the attributes of `FitImaging` objects using the matplotlib method `imshow()` and many other matplotlib
@@ -255,8 +247,7 @@ def __init__(
255247
but a user can manually input values into `MatPlot2d` to customize the figure's appearance.
256248
257249
Overlaid on the figure are visuals, contained in the `Visuals2D` object. Attributes may be extracted from
258-
the `FitImaging` and plotted via the visuals object, if the corresponding entry is `True` in the `Include2D`
259-
object or the `config/visualize/include.ini` file.
250+
the `FitImaging` and plotted via the visuals object.
260251
261252
Parameters
262253
----------
@@ -266,20 +257,15 @@ def __init__(
266257
Contains objects which wrap the matplotlib function calls that make the plot.
267258
visuals_2d
268259
Contains visuals that can be overlaid on the plot.
269-
include_2d
270-
Specifies which attributes of the `Array2D` are extracted and plotted as visuals.
271260
"""
272-
super().__init__(
273-
mat_plot_2d=mat_plot_2d, include_2d=include_2d, visuals_2d=visuals_2d
274-
)
261+
super().__init__(mat_plot_2d=mat_plot_2d, visuals_2d=visuals_2d)
275262

276263
self.fit = fit
277264

278265
self._fit_imaging_meta_plotter = FitImagingPlotterMeta(
279266
fit=self.fit,
280267
get_visuals_2d=self.get_visuals_2d,
281268
mat_plot_2d=self.mat_plot_2d,
282-
include_2d=self.include_2d,
283269
visuals_2d=self.visuals_2d,
284270
)
285271

autoarray/fit/plot/fit_interferometer_plotters.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
from autoarray.plot.abstract_plotters import Plotter
55
from autoarray.plot.visuals.one_d import Visuals1D
66
from autoarray.plot.visuals.two_d import Visuals2D
7-
from autoarray.plot.include.one_d import Include1D
8-
from autoarray.plot.include.two_d import Include2D
97
from autoarray.plot.mat_plot.one_d import MatPlot1D
108
from autoarray.plot.mat_plot.two_d import MatPlot2D
119
from autoarray.plot.auto_labels import AutoLabels
@@ -19,10 +17,8 @@ def __init__(
1917
get_visuals_2d_real_space: Callable,
2018
mat_plot_1d: MatPlot1D,
2119
visuals_1d: Visuals1D,
22-
include_1d: Include1D,
2320
mat_plot_2d: MatPlot2D = None,
2421
visuals_2d: Visuals2D = None,
25-
include_2d: Include2D = None,
2622
residuals_symmetric_cmap: bool = True,
2723
):
2824
"""
@@ -35,8 +31,7 @@ def __init__(
3531
customize the figure's appearance.
3632
3733
Overlaid on the figure are visuals, contained in the `Visuals1D` and `Visuals2D` objects. Attributes may be
38-
extracted from the `FitInterferometer` and plotted via the visuals object, if the corresponding entry is `True` in
39-
the `Include1D` or `Include2D` object or the `config/visualize/include.ini` file.
34+
extracted from the `FitInterferometer` and plotted via the visuals object.
4035
4136
Parameters
4237
----------
@@ -48,24 +43,18 @@ def __init__(
4843
Contains objects which wrap the matplotlib function calls that make 1D plots.
4944
visuals_1d
5045
Contains 1D visuals that can be overlaid on 1D plots.
51-
include_1d
52-
Specifies which attributes of the `FitInterferometer` are extracted and plotted as visuals for 1D plots.
5346
mat_plot_2d
5447
Contains objects which wrap the matplotlib function calls that make 2D plots.
5548
visuals_2d
5649
Contains 2D visuals that can be overlaid on 2D plots.
57-
include_2d
58-
Specifies which attributes of the `FitInterferometer` are extracted and plotted as visuals for 2D plots.
5950
residuals_symmetric_cmap
6051
If true, the `residual_map` and `normalized_residual_map` are plotted with a symmetric color map such
6152
that `abs(vmin) = abs(vmax)`.
6253
"""
6354
super().__init__(
6455
mat_plot_1d=mat_plot_1d,
65-
include_1d=include_1d,
6656
visuals_1d=visuals_1d,
6757
mat_plot_2d=mat_plot_2d,
68-
include_2d=include_2d,
6958
visuals_2d=visuals_2d,
7059
)
7160

@@ -457,10 +446,8 @@ def __init__(
457446
fit: FitInterferometer,
458447
mat_plot_1d: MatPlot1D = None,
459448
visuals_1d: Visuals1D = None,
460-
include_1d: Include1D = None,
461449
mat_plot_2d: MatPlot2D = None,
462450
visuals_2d: Visuals2D = None,
463-
include_2d: Include2D = None,
464451
):
465452
"""
466453
Plots the attributes of `FitInterferometer` objects using the matplotlib method `imshow()` and many other
@@ -471,8 +458,7 @@ def __init__(
471458
but a user can manually input values into `MatPlot2d` to customize the figure's appearance.
472459
473460
Overlaid on the figure are visuals, contained in the `Visuals2D` object. Attributes may be extracted from
474-
the `FitInterferometer` and plotted via the visuals object, if the corresponding entry is `True` in the `Include2D`
475-
object or the `config/visualize/include.ini` file.
461+
the `FitInterferometer` and plotted via the visuals object.
476462
477463
Parameters
478464
----------
@@ -482,15 +468,11 @@ def __init__(
482468
Contains objects which wrap the matplotlib function calls that make the plot.
483469
visuals_2d
484470
Contains visuals that can be overlaid on the plot.
485-
include_2d
486-
Specifies which attributes of the `Array2D` are extracted and plotted as visuals.
487471
"""
488472
super().__init__(
489473
mat_plot_1d=mat_plot_1d,
490-
include_1d=include_1d,
491474
visuals_1d=visuals_1d,
492475
mat_plot_2d=mat_plot_2d,
493-
include_2d=include_2d,
494476
visuals_2d=visuals_2d,
495477
)
496478

@@ -500,10 +482,8 @@ def __init__(
500482
fit=self.fit,
501483
get_visuals_2d_real_space=self.get_visuals_2d_real_space,
502484
mat_plot_1d=self.mat_plot_1d,
503-
include_1d=self.include_1d,
504485
visuals_1d=self.visuals_1d,
505486
mat_plot_2d=self.mat_plot_2d,
506-
include_2d=self.include_2d,
507487
visuals_2d=self.visuals_2d,
508488
)
509489

0 commit comments

Comments
 (0)