@@ -659,7 +659,7 @@ def fixture_sacc_galaxy_cells() -> tuple[sacc.Sacc, dict, dict]:
659659 dv = []
660660
661661 for i , j in upper_triangle_indices (len (src_bins_centers )):
662- Cells = np .random .normal (size = ells .shape [0 ])
662+ Cells = np .array ( np . random .normal (size = ells .shape [0 ]) )
663663 sacc_data .add_ell_cl ("galaxy_shear_cl_ee" , f"src{ i } " , f"src{ j } " , ells , Cells )
664664 tracer_pairs [(TracerNames (f"src{ i } " , f"src{ j } " ), "galaxy_shear_cl_ee" )] = (
665665 ells ,
@@ -668,7 +668,7 @@ def fixture_sacc_galaxy_cells() -> tuple[sacc.Sacc, dict, dict]:
668668 dv .append (Cells )
669669
670670 for i , j in upper_triangle_indices (len (lens_bins_centers )):
671- Cells = np .random .normal (size = ells .shape [0 ])
671+ Cells = np .array ( np . random .normal (size = ells .shape [0 ]) )
672672 sacc_data .add_ell_cl ("galaxy_density_cl" , f"lens{ i } " , f"lens{ j } " , ells , Cells )
673673 tracer_pairs [(TracerNames (f"lens{ i } " , f"lens{ j } " ), "galaxy_density_cl" )] = (
674674 ells ,
@@ -677,7 +677,7 @@ def fixture_sacc_galaxy_cells() -> tuple[sacc.Sacc, dict, dict]:
677677 dv .append (Cells )
678678
679679 for i , j in product (range (len (src_bins_centers )), range (len (lens_bins_centers ))):
680- Cells = np .random .normal (size = ells .shape [0 ])
680+ Cells = np .array ( np . random .normal (size = ells .shape [0 ]) )
681681 sacc_data .add_ell_cl (
682682 "galaxy_shearDensity_cl_e" , f"src{ i } " , f"lens{ j } " , ells , Cells
683683 )
@@ -828,7 +828,7 @@ def fixture_sacc_galaxy_xis():
828828 dv = []
829829
830830 for i , j in upper_triangle_indices (len (lens_bins_centers )):
831- xis = np .random .normal (size = thetas .shape [0 ])
831+ xis = np .array ( np . random .normal (size = thetas .shape [0 ]) )
832832 sacc_data .add_theta_xi ("galaxy_density_xi" , f"lens{ i } " , f"lens{ j } " , thetas , xis )
833833 tracer_pairs [(TracerNames (f"lens{ i } " , f"lens{ j } " ), "galaxy_density_xi" )] = (
834834 thetas ,
@@ -837,7 +837,7 @@ def fixture_sacc_galaxy_xis():
837837 dv .append (xis )
838838
839839 for i , j in product (range (len (src_bins_centers )), range (len (lens_bins_centers ))):
840- xis = np .random .normal (size = thetas .shape [0 ])
840+ xis = np .array ( np . random .normal (size = thetas .shape [0 ]) )
841841 sacc_data .add_theta_xi (
842842 "galaxy_shearDensity_xi_t" , f"src{ i } " , f"lens{ j } " , thetas , xis
843843 )
@@ -850,7 +850,7 @@ def fixture_sacc_galaxy_xis():
850850 dv .append (xis )
851851
852852 for i , j in upper_triangle_indices (len (src_bins_centers )):
853- xis = np .random .normal (size = thetas .shape [0 ])
853+ xis = np .array ( np . random .normal (size = thetas .shape [0 ]) )
854854 sacc_data .add_theta_xi (
855855 "galaxy_shear_xi_minus" , f"src{ i } " , f"src{ j } " , thetas , xis
856856 )
@@ -860,7 +860,7 @@ def fixture_sacc_galaxy_xis():
860860 )
861861 dv .append (xis )
862862 for i , j in upper_triangle_indices (len (src_bins_centers )):
863- xis = np .random .normal (size = thetas .shape [0 ])
863+ xis = np .array ( np . random .normal (size = thetas .shape [0 ]) )
864864 sacc_data .add_theta_xi (
865865 "galaxy_shear_xi_plus" , f"src{ i } " , f"src{ j } " , thetas , xis
866866 )
@@ -908,7 +908,7 @@ def fixture_sacc_galaxy_xis_inverted():
908908 dv = []
909909
910910 for i , j in upper_triangle_indices (len (lens_bins_centers )):
911- xis = np .random .normal (size = thetas .shape [0 ])
911+ xis = np .array ( np . random .normal (size = thetas .shape [0 ]) )
912912 sacc_data .add_theta_xi ("galaxy_density_xi" , f"lens{ j } " , f"lens{ i } " , thetas , xis )
913913 tracer_pairs [(TracerNames (f"lens{ j } " , f"lens{ i } " ), "galaxy_density_xi" )] = (
914914 thetas ,
@@ -917,7 +917,7 @@ def fixture_sacc_galaxy_xis_inverted():
917917 dv .append (xis )
918918
919919 for i , j in product (range (len (src_bins_centers )), range (len (lens_bins_centers ))):
920- xis = np .random .normal (size = thetas .shape [0 ])
920+ xis = np .array ( np . random .normal (size = thetas .shape [0 ]) )
921921 sacc_data .add_theta_xi (
922922 "galaxy_shearDensity_xi_t" , f"lens{ i } " , f"src{ j } " , thetas , xis
923923 )
@@ -930,7 +930,7 @@ def fixture_sacc_galaxy_xis_inverted():
930930 dv .append (xis )
931931
932932 for i , j in upper_triangle_indices (len (src_bins_centers )):
933- xis = np .random .normal (size = thetas .shape [0 ])
933+ xis = np .array ( np . random .normal (size = thetas .shape [0 ]) )
934934 sacc_data .add_theta_xi (
935935 "galaxy_shear_xi_minus" , f"src{ j } " , f"src{ i } " , thetas , xis
936936 )
@@ -940,7 +940,7 @@ def fixture_sacc_galaxy_xis_inverted():
940940 )
941941 dv .append (xis )
942942 for i , j in upper_triangle_indices (len (src_bins_centers )):
943- xis = np .random .normal (size = thetas .shape [0 ])
943+ xis = np .array ( np . random .normal (size = thetas .shape [0 ]) )
944944 sacc_data .add_theta_xi (
945945 "galaxy_shear_xi_plus" , f"src{ j } " , f"src{ i } " , thetas , xis
946946 )
@@ -969,7 +969,7 @@ def fixture_sacc_galaxy_cells_ambiguous() -> sacc.Sacc:
969969 dndz = np .exp (- 0.5 * (z - 0.5 ) ** 2 / 0.05 / 0.05 )
970970 sacc_data .add_tracer ("NZ" , "bin0" , z , dndz )
971971 sacc_data .add_tracer ("NZ" , "bin1" , z , dndz )
972- Cells = np .random .normal (size = ells .shape [0 ])
972+ Cells = np .array ( np . random .normal (size = ells .shape [0 ]) )
973973 sacc_data .add_ell_cl ("galaxy_shearDensity_cl_e" , "bin0" , "bin1" , ells , Cells )
974974 cov = np .diag (np .zeros (len (ells )) + 0.01 )
975975
@@ -1052,7 +1052,7 @@ def fixture_sacc_galaxy_cells_src0_src0_no_window() -> (
10521052 dndz = np .exp (- 0.5 * (z - 0.5 ) ** 2 / 0.05 / 0.05 )
10531053 sacc_data .add_tracer ("NZ" , "src0" , z , dndz )
10541054
1055- Cells = np .random .normal (size = ells .shape [0 ])
1055+ Cells = np .array ( np . random .normal (size = ells .shape [0 ]) )
10561056 sacc_data .add_ell_cl ("galaxy_shear_cl_ee" , "src0" , "src0" , ells , Cells )
10571057
10581058 cov = np .diag (np .ones_like (Cells ) * 0.01 )
0 commit comments