File tree Expand file tree Collapse file tree
test_autofit/aggregator/summary_files Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66from PIL import Image
77
88from autofit .aggregator import Aggregator
9- from autofit .aggregator .summary .aggregate_images import AggregateImages , SubplotFit
10-
9+ from autofit .aggregator .summary .aggregate_images import AggregateImages
10+
11+ class SubplotFit (Enum ):
12+ """
13+ The subplots that can be extracted from the subplot_fit image.
14+
15+ The values correspond to the position of the subplot in the 4x3 grid.
16+ """
17+
18+ Data = (0 , 0 )
19+ DataSourceScaled = (1 , 0 )
20+ SignalToNoiseMap = (2 , 0 )
21+ ModelData = (3 , 0 )
22+ LensLightModelData = (0 , 1 )
23+ LensLightSubtractedImage = (1 , 1 )
24+ SourceModelData = (2 , 1 )
25+ SourcePlaneZoomed = (3 , 1 )
26+ NormalizedResidualMap = (0 , 2 )
27+ NormalizedResidualMapOneSigma = (1 , 2 )
28+ ChiSquaredMap = (2 , 2 )
29+ SourcePlaneNoZoom = (3 , 2 )
1130
1231@pytest .fixture
1332def aggregate (aggregator ):
@@ -167,7 +186,7 @@ class SubplotFit(Enum):
167186 SubplotFit .Data ,
168187 ]
169188 )
170- assert result .size == (61 , 120 )
189+ assert result .size == (244 , 362 )
171190
172191
173192def test_bad_aggregator ():
You can’t perform that action at this time.
0 commit comments