Skip to content

Commit 58a7473

Browse files
Jammy2211Jammy2211
authored andcommitted
fix unit test
1 parent 316c884 commit 58a7473

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

test_autofit/aggregator/summary_files/test_aggregate_images.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,27 @@
66
from PIL import Image
77

88
from 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
1332
def 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

173192
def test_bad_aggregator():

0 commit comments

Comments
 (0)