2323ZOUT = "feniks_zout_selected_for_testing.ecsv"
2424
2525
26+ @pytest .fixture (scope = "session" )
27+ def ran_key ():
28+ return jran .key (0 )
29+
30+
2631@pytest .fixture (scope = "session" )
2732def fake_subset_ssp_data ():
2833 ssp_data = retrieve_fake_fsps_data .load_fake_ssp_data ()
@@ -33,9 +38,9 @@ def fake_subset_ssp_data():
3338
3439
3540@pytest .fixture (scope = "session" )
36- def feniks (fake_subset_ssp_data ):
41+ def feniks (ran_key , fake_subset_ssp_data ):
3742 ssp_data , emline_wave_aa = fake_subset_ssp_data
38- ran_key = jran . key ( 0 )
43+
3944 feniks = load_feniks .get_feniks_data (
4045 FENIKS_DRN ,
4146 ran_key ,
@@ -47,9 +52,9 @@ def feniks(fake_subset_ssp_data):
4752
4853
4954@pytest .fixture (scope = "session" )
50- def hizels (fake_subset_ssp_data , feniks_tcurves ):
55+ def hizels (ran_key , fake_subset_ssp_data , feniks_tcurves ):
5156 ssp_data , emline_wave_aa = fake_subset_ssp_data
52- ran_key = jran . key ( 0 )
57+
5358 hizels = load_hizels .get_hizels_data (
5459 HIZELS_DRN ,
5560 ran_key ,
@@ -71,14 +76,13 @@ def feniks_tcurves():
7176
7277
7378@pytest .fixture (scope = "session" )
74- def feniks_single_z_data (fake_subset_ssp_data , feniks ):
79+ def feniks_single_z_data (ran_key , fake_subset_ssp_data , feniks ):
7580 ssp_data , emline_wave_aa = fake_subset_ssp_data
7681
7782 z_min = 0.2
7883 z_max = 1.0
7984 N_centroids = 100
8085
81- ran_key = jran .key (0 )
8286 feniks_meta_data , feniks_fitting_data = lhu .get_single_zbin_lh_lc (
8387 ran_key ,
8488 feniks ,
@@ -91,15 +95,16 @@ def feniks_single_z_data(fake_subset_ssp_data, feniks):
9195
9296
9397@pytest .fixture (scope = "session" )
94- def feniks_multi_z_data (fake_subset_ssp_data , feniks ):
98+ def feniks_multi_z_data (ran_key , fake_subset_ssp_data , feniks ):
9599 ssp_data , emline_wave_aa = fake_subset_ssp_data
96100
97- ran_key = jran .key (0 )
101+ feniks_z_min = [0.2 , 1 ]
102+ feniks_z_max = [1 , 2 ]
98103
99- z_mins = [ 0.2 , 1.0 ]
100- z_maxs = [ 1.0 , 2.0 ]
104+ z_mins = feniks_z_min [: 2 ]
105+ z_maxs = feniks_z_max [: 2 ]
101106
102- N_centroids = 200
107+ N_centroids = 100
103108 num_halos = 100
104109 feniks_meta_data , feniks_fitting_data = lhu .get_zbins_lh_lc (
105110 ran_key ,
@@ -114,22 +119,20 @@ def feniks_multi_z_data(fake_subset_ssp_data, feniks):
114119
115120
116121@pytest .fixture (scope = "session" )
117- def feniks_lc_data (fake_subset_ssp_data , feniks ):
122+ def feniks_lc_data (ran_key , fake_subset_ssp_data , feniks ):
118123 ssp_data , emline_wave_aa = fake_subset_ssp_data
119124 tcurves = feniks .filter_info .tcurves
120125
121- ran_key = jran .key (0 )
122-
123126 z_min = 0.2
124- z_max = 0.5
127+ z_max = 1.0
125128 n_z_phot_table = 15
126129 z_phot_table = 10 ** jnp .linspace (
127130 jnp .log10 (z_min ), jnp .log10 (z_max ), n_z_phot_table
128131 )
129132
130133 num_halos = 100
131134 lgmp_min = 10.0
132- lgmp_max = 15
135+ lgmp_max = 15.0
133136 lc_sky_area_degsq = 100
134137
135138 lc_data = generate_lc_data (
0 commit comments