@@ -67,11 +67,7 @@ def level_0_commondata_tuple(
6767 Subset of flavour (evolution basis) indices to be used.
6868
6969 fill_fk_xgrid_with_zeros: bool, default is False
70- If True, then the missing xgrid points in the FK table
71- will be filled with zeros. This is useful when the FK table
72- is needed as tensor of shape (Ndat, Nfl, Nfk_xgrid) with Nfk_xgrid and Nfl fixed
73- for all datasets.
74-
70+ Must match the value used to build ``fast_kernel_arrays``.
7571
7672 Returns
7773 -------
@@ -101,21 +97,21 @@ def level_0_commondata_tuple(
10197
10298def level_1_commondata_tuple (
10399 level_0_commondata_tuple ,
104- data_generation_covariance_matrix ,
100+ general_covariance_matrix ,
105101 level_1_seed = 123456 ,
106102):
107103 """
108104 Returns a tuple (validphys nodes should be immutable)
109105 of level 1 commondata instances.
110106 Noise is added to the level_0_commondata_tuple central values
111- according to a multivariate Gaussian with covariance data_generation_covariance_matrix
107+ according to a multivariate Gaussian with covariance general_covariance_matrix
112108
113109 Parameters
114110 ----------
115111 level_0_commondata_tuple: tuple of nnpdf_data.coredata.CommonData instances
116112 A tuple of level_0 closure test data.
117113
118- data_generation_covariance_matrix : jnp.ndarray
114+ general_covariance_matrix : jnp.ndarray
119115 The covariance matrix used for data generation.
120116
121117 level_1_seed: int
@@ -133,11 +129,11 @@ def level_1_commondata_tuple(
133129 )
134130
135131 # Now, sample from the multivariate Gaussian with central values central_values
136- # and covariance matrix data_generation_covariance_matrix . This produces the
132+ # and general_covariance_matrix . This produces the
137133 # level_1 data.
138134 rng = jax .random .PRNGKey (level_1_seed )
139135 sample = jax .random .multivariate_normal (
140- rng , central_values , data_generation_covariance_matrix
136+ rng , central_values , general_covariance_matrix
141137 )
142138
143139 # Now, reconstruct the commondata tuple, by modifying the original commondata
@@ -150,9 +146,9 @@ def level_1_commondata_tuple(
150146 return tuple (sample_list )
151147
152148
153- def central_covmat_index (commondata_tuple , fit_covariance_matrix ):
149+ def central_covmat_index (commondata_tuple , general_covariance_matrix ):
154150 """
155- Given a commondata_tuple and a covariance_matrix , generated
151+ Given a commondata_tuple and a general_covariance_matrix , generated
156152 according to respective explicit node in config.py, store
157153 relevant data into CentralCovmatIndex dataclass.
158154
@@ -163,10 +159,10 @@ def central_covmat_index(commondata_tuple, fit_covariance_matrix):
163159 (see config.produce_commondata_tuple) and accordingly to the
164160 specified options.
165161
166- fit_covariance_matrix : jnp.ndarray
162+ general_covariance_matrix : jnp.ndarray
167163 covariance matrix, is generated as explicit node
168- (see config.fit_covariance_matrix ) can be either experimental
169- or t0 covariance matrix depending on whether `use_fit_t0 ` is
164+ (see config.general_covariance_matrix ) can be either experimental
165+ or t0 covariance matrix depending on whether `use_t0_covmat ` is
170166 True or False
171167
172168 Returns
@@ -183,14 +179,5 @@ def central_covmat_index(commondata_tuple, fit_covariance_matrix):
183179 return CentralCovmatIndex (
184180 central_values = central_values ,
185181 central_values_idx = central_values_idx ,
186- covmat = fit_covariance_matrix ,
182+ covmat = general_covariance_matrix ,
187183 )
188-
189-
190- def pseudodata_central_covmat_index (
191- commondata_tuple , data_generation_covariance_matrix
192- ):
193- """Same as central_covmat_index, but with the pseudodata generation
194- covariance matrix for a Monte Carlo fit.
195- """
196- return central_covmat_index (commondata_tuple , data_generation_covariance_matrix )
0 commit comments