@@ -555,39 +555,6 @@ def test__inversion_matrices__x2_mappers(
555555 assert inversion .mapped_reconstructed_image [4 ] == pytest .approx (0.99999998 , 1.0e-4 )
556556
557557
558- def test__inversion_matrices__x2_mappers__compare_mapping_and_sparse_operator_values (
559- masked_imaging_7x7 ,
560- rectangular_mapper_7x7_3x3 ,
561- delaunay_mapper_9_3x3 ,
562- ):
563-
564- masked_imaging_7x7_sparse_operator = masked_imaging_7x7 .apply_sparse_operator ()
565-
566- inversion_sparse_operator = aa .Inversion (
567- dataset = masked_imaging_7x7_sparse_operator ,
568- linear_obj_list = [rectangular_mapper_7x7_3x3 , delaunay_mapper_9_3x3 ],
569- settings = aa .SettingsInversion (use_positive_only_solver = True ),
570- )
571-
572- inversion_mapping = aa .Inversion (
573- dataset = masked_imaging_7x7 ,
574- linear_obj_list = [rectangular_mapper_7x7_3x3 , delaunay_mapper_9_3x3 ],
575- settings = aa .SettingsInversion (use_positive_only_solver = True ),
576- )
577-
578- assert inversion_sparse_operator .curvature_matrix == pytest .approx (
579- inversion_mapping .curvature_matrix , 1.0e-4
580- )
581- assert inversion_sparse_operator .reconstruction == pytest .approx (
582- inversion_mapping .reconstruction , 1.0e-4
583- )
584- assert inversion_sparse_operator .mapped_reconstructed_image .array == pytest .approx (
585- inversion_mapping .mapped_reconstructed_image .array , 1.0e-4
586- )
587- assert inversion_sparse_operator .log_det_curvature_reg_matrix_term == pytest .approx (
588- inversion_mapping .log_det_curvature_reg_matrix_term
589- )
590-
591558
592559def test__inversion_imaging__positive_only_solver (masked_imaging_7x7_no_blur ):
593560 mask = masked_imaging_7x7_no_blur .mask
0 commit comments