Skip to content

Commit 54b15a8

Browse files
DelloStrittoqgp
andauthored
Update machine_learning_hep/processer.py
Co-authored-by: Jochen Klein <[email protected]>
1 parent b185ab0 commit 54b15a8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

machine_learning_hep/processer.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,9 @@ def __init__(self, case, datap, run_param, mcordata, p_maxfiles, # pylint: disab
248248
for ipt in range(self.p_nptbins)]
249249
self.f_evt_count_ml = os.path.join(self.d_pkl_ml, self.n_evt_count_ml)
250250

251-
if self.n_gen_sl:
252-
self.lpt_gensk_sl = [self.n_gen_sl.replace(".p", "_%s%d_%d.p" % \
253-
(self.v_var_binning, self.lpt_anbinmin[i], self.lpt_anbinmax[i])) \
254-
for i in range(self.p_nptbins)]
251+
self.lpt_gensk_sl = [self.n_gen_sl.replace(".p", "_%s%d_%d.p" %
252+
(self.v_var_binning, self.lpt_anbinmin[i], self.lpt_anbinmax[i]))
253+
for i in range(self.p_nptbins)] if self.n_gen_sl else None
255254

256255
self.lpt_recodec = None
257256
if self.doml is True:

0 commit comments

Comments
 (0)