@@ -125,7 +125,7 @@ def make_replica(
125125 central_values_array ,
126126 group_replica_mcseed ,
127127 dataset_inputs_sampling_covmat ,
128- replica_multiplicative_errors ,
128+ group_multiplicative_errors ,
129129 sep_mult = False ,
130130 genrep = True ,
131131 max_tries = int (1e6 ),
@@ -198,17 +198,17 @@ def make_replica(
198198 covmat_sqrt = sqrt_covmat (covmat )
199199
200200 all_pseudodata = central_values_array
201- if replica_multiplicative_errors is not None :
202- full_mask = replica_multiplicative_errors ["full_mask" ]
201+ if group_multiplicative_errors is not None :
202+ full_mask = group_multiplicative_errors ["full_mask" ]
203203 else :
204204 full_mask = np .ones_like (central_values_array , dtype = bool )
205205 # The inner while True loop is for ensuring a positive definite
206206 # pseudodata replica
207207 for _ in range (max_tries ):
208208 mult_shifts = []
209209 # Prepare the per-dataset multiplicative shifts
210- if replica_multiplicative_errors is not None :
211- for mult_uncorr_errors , mult_corr_errors in replica_multiplicative_errors [
210+ if group_multiplicative_errors is not None :
211+ for mult_uncorr_errors , mult_corr_errors in group_multiplicative_errors [
212212 "nonspecial_mult"
213213 ]:
214214 # convert to from percent to fraction
@@ -226,7 +226,7 @@ def make_replica(
226226 shifts = covmat_sqrt @ rng .normal (size = covmat .shape [1 ])
227227 mult_part = 1.0
228228 if sep_mult :
229- special_mult_errors = replica_multiplicative_errors ["special_mult" ]
229+ special_mult_errors = group_multiplicative_errors ["special_mult" ]
230230 special_mult = (
231231 1 + special_mult_errors * rng .normal (size = (1 , special_mult_errors .shape [1 ])) / 100
232232 ).prod (axis = 1 )
@@ -252,7 +252,7 @@ def central_values_array(groups_dataset_inputs_loaded_cd_with_cuts):
252252 return np .concatenate (central_values , axis = 0 )
253253
254254
255- def replica_multiplicative_errors (groups_dataset_inputs_loaded_cd_with_cuts , sep_mult ):
255+ def group_multiplicative_errors (groups_dataset_inputs_loaded_cd_with_cuts , sep_mult ):
256256 """Function that takes in a list of :py:class:`nnpdf_data.coredata.CommonData
257257 and returns the multiplicative uncertainties contribution to the pseudodata replica.
258258 """
0 commit comments