File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
autoarray/inversion/inversion/interferometer
test_autoarray/inversion/inversion/interferometer Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def data_vector(self) -> np.ndarray:
7676 """
7777
7878 return inversion_interferometer_util .data_vector_via_transformed_mapping_matrix_from (
79- transformed_mapping_matrix = self .operated_mapping_matrix ,
79+ transformed_mapping_matrix = np . array ( self .operated_mapping_matrix ) ,
8080 visibilities = np .array (self .data ),
8181 noise_map = np .array (self .noise_map ),
8282 )
@@ -152,8 +152,8 @@ def mapped_reconstructed_data_dict(
152152
153153 visibilities = (
154154 inversion_interferometer_util .mapped_reconstructed_visibilities_from (
155- transformed_mapping_matrix = operated_mapping_matrix_list [index ],
156- reconstruction = reconstruction ,
155+ transformed_mapping_matrix = np . array ( operated_mapping_matrix_list [index ]) ,
156+ reconstruction = np . array ( reconstruction ) ,
157157 )
158158 )
159159
Original file line number Diff line number Diff line change @@ -272,8 +272,8 @@ def test__identical_inversion_values_for_two_methods():
272272 == inversion_mapping_matrices .regularization_matrix
273273 ).all ()
274274
275- assert inversion_w_tilde .data_vector == pytest .approx (
276- inversion_mapping_matrices .data_vector , 1.0e-8
275+ assert inversion_w_tilde .data_vector . array == pytest .approx (
276+ inversion_mapping_matrices .data_vector . array , 1.0e-8
277277 )
278278 assert inversion_w_tilde .curvature_matrix == pytest .approx (
279279 inversion_mapping_matrices .curvature_matrix , 1.0e-8
@@ -384,8 +384,8 @@ def test__identical_inversion_source_and_image_loops():
384384 assert inversion_image_loop .reconstruction == pytest .approx (
385385 inversion_source_loop .reconstruction , 1.0e-2
386386 )
387- assert inversion_image_loop .mapped_reconstructed_image == pytest .approx (
388- inversion_source_loop .mapped_reconstructed_image , 1.0e-2
387+ assert inversion_image_loop .mapped_reconstructed_image . array == pytest .approx (
388+ inversion_source_loop .mapped_reconstructed_image . array , 1.0e-2
389389 )
390390 assert inversion_image_loop .mapped_reconstructed_data == pytest .approx (
391391 inversion_source_loop .mapped_reconstructed_data , 1.0e-2
You can’t perform that action at this time.
0 commit comments