Skip to content

Commit 33fe9ee

Browse files
committed
Nitpick and remaining pylint errors
1 parent 86e65ef commit 33fe9ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

machine_learning_hep/analysis/analyzerdhadrons.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def fit(self):
291291
lpt_probcutfin[ipt] = self.lpt_probcutfin_tmp[self.bin_matching[ipt]]
292292
self.logger.debug("fitting %s - %i", level, ipt)
293293
roows = self.roows.get(ipt)
294-
if self.mltype == "MultiClassification": # pylint: ignore=duplicate-code
294+
if self.mltype == "MultiClassification": # pylint: disable=duplicate-code
295295
suffix = "%s%d_%d_%.2f%.2f%.2f" % (
296296
self.v_var_binning,
297297
self.lpt_finbinmin[ipt],
@@ -453,7 +453,7 @@ def do_eff(gen_hist, sel_hist, histname, outname, eff_case):
453453

454454
do_eff("h_gen_pr", "h_sel_pr", "eff", "Eff", "prompt")
455455
do_eff("h_gen_fd", "h_sel_fd", "eff_fd", "EffFD", "feed-down")
456-
if self.do_ptshape:
456+
if self.do_ptshape: # pylint: disable=no-member
457457
do_eff("h_gen_fd_ptshape", "h_sel_fd_ptshape", "eff_fd_ptshape", "EffFDPtShape", "feed-down")
458458

459459
@staticmethod

machine_learning_hep/processerdhadrons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def process_histomass_single(self, index):
153153

154154
df_ptmerged = pd.concat([df_ptmerged, df], ignore_index=True)
155155

156-
if self.mltype == "MultiClassification": # pylint: ignore=duplicate-code
156+
if self.mltype == "MultiClassification": # pylint: disable=duplicate-code
157157
suffix = "%s%d_%d_%.2f%.2f%.2f" % (
158158
self.v_var_binning,
159159
self.lpt_finbinmin[ipt],

0 commit comments

Comments
 (0)