@@ -43,11 +43,13 @@ def test__via_image_from__psf_off__include_poisson_noise_in_noise_map(
4343 dataset = simulator .via_image_from (image = image )
4444
4545 assert dataset .data .native == pytest .approx (
46- np .array ([[1.05 , 1.3 , 1.25 ], [1.05 , 2.1 , 1.2 ], [1.05 , 1.3 , 1.15 ]]), 1e-2
46+ np .array ([[0.95 , 0.7 , 0.75 ], [0.95 , 1.9 , 0.8 ], [0.95 , 0.7 , 0.85 ]]), 1e-2
4747 )
4848
4949 assert dataset .noise_map .native == pytest .approx (
50- np .array ([[0.229 , 0.255 , 0.25 ], [0.229 , 0.324 , 0.245 ], [0.229 , 0.255 , 0.240 ]]),
50+ np .array (
51+ [[0.218 , 0.187 , 0.194 ], [0.218 , 0.308 , 0.2 ], [0.218 , 0.187 , 0.206 ]]
52+ ),
5153 1e-2 ,
5254 )
5355
@@ -85,10 +87,10 @@ def test__via_image_from__psf_off__background_sky_on(image_central_delta_3x3):
8587
8688 assert (
8789 dataset .data .native
88- == np .array ([[1.0 , 5.0 , 4.0 ], [1.0 , 2 .0 , 1.0 ], [5.0 , 2.0 , 7.0 ]])
90+ == np .array ([[- 1.0 , - 5.0 , - 4.0 ], [- 1.0 , 0 .0 , - 1.0 ], [- 5.0 , - 2.0 , - 7.0 ]])
8991 ).all ()
9092
91- assert dataset .noise_map .native [0 , 0 ] == pytest .approx (4.12310 , 1.0e-4 )
93+ assert dataset .noise_map .native [0 , 0 ] == pytest .approx (3.87298 , 1.0e-4 )
9294
9395
9496def test__via_image_from__psf_on__psf_blurs_image_with_edge_trimming (
@@ -143,7 +145,7 @@ def test__via_image_from__psf_on__disable_poisson_noise_in_data(
143145
144146 assert dataset .noise_map .native == pytest .approx (
145147 np .array (
146- [[0.0 , 0.22912 , 0.0 ], [0.25495 , 0.34278 , 0.22912 ], [0.0 , 0.229128 , 0.0 ]]
148+ [[0.0 , 0.21794 , 0.0 ], [0.18708 , 0.28723 , 0.21794 ], [0.0 , 0.21794 , 0.0 ]]
147149 ),
148150 1e-2 ,
149151 )
@@ -169,5 +171,5 @@ def test__via_image_from__psf_on__psf_and_noise_both_on(image_central_delta_3x3)
169171 dataset = simulator .via_image_from (image = image )
170172
171173 assert dataset .data .native == pytest .approx (
172- np .array ([[4.1 , 6.65 , 4.45 ], [6.15 , 8.15 , 6 .5 ], [4.1 , 6.7 , 4.25 ]]), 1e-2
174+ np .array ([[3.9 , 5.35 , 3.55 ], [5.85 , 7.85 , 5 .5 ], [3.9 , 5.3 , 3.75 ]]), 1e-2
173175 )
0 commit comments