@@ -71,17 +71,17 @@ def collect(self, thismod, nom):
7171 mask = [maskval ] * len (nom )
7272 return {"mask" : mask }
7373
74- def append (self , key , channel , sample , thismod , defined_samp ):
74+ def append (self , key , channel , sample , thismod , defined_sample ):
7575 self .builder_data .setdefault (key , {}).setdefault (sample , {}).setdefault (
7676 "data" , {"mask" : []}
7777 )
7878 nom = (
79- defined_samp ["data" ]
80- if defined_samp
79+ defined_sample ["data" ]
80+ if defined_sample
8181 else [0.0 ] * self .config .channel_nbins [channel ]
8282 )
83- moddata = self .collect (thismod , nom )
84- self .builder_data [key ][sample ]["data" ]["mask" ] += moddata ["mask" ]
83+ mod_data = self .collect (thismod , nom )
84+ self .builder_data [key ][sample ]["data" ]["mask" ] += mod_data ["mask" ]
8585 if thismod :
8686 if thismod ["name" ] != func_name :
8787 print (thismod )
@@ -110,7 +110,7 @@ def __init__(self, modifiers, pdfconfig, builder_data, batch_size=None):
110110
111111 self .batch_size = batch_size
112112 pars_for_applier = deps
113- _modnames = [f"{ mtype } /{ m } " for m , mtype in modifiers ]
113+ _mod_names = [f"{ mtype } /{ m } " for m , mtype in modifiers ]
114114
115115 parfield_shape = (
116116 (self .batch_size , pdfconfig .npars )
@@ -121,8 +121,8 @@ def __init__(self, modifiers, pdfconfig, builder_data, batch_size=None):
121121 parfield_shape , pdfconfig .par_map , pars_for_applier
122122 )
123123 self ._custom_mod_mask = [
124- [[builder_data [modname ][s ]["data" ]["mask" ]] for s in pdfconfig .samples ]
125- for modname in _modnames
124+ [[builder_data [mod_name ][s ]["data" ]["mask" ]] for s in pdfconfig .samples ]
125+ for mod_name in _mod_names
126126 ]
127127 self ._precompute ()
128128 events .subscribe ("tensorlib_changed" )(self ._precompute )
0 commit comments