Skip to content

Commit

Permalink
fixing clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Luigi Dello Stritto committed Oct 9, 2023
1 parent 5cc607a commit 277e46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine_learning_hep/processer.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def parallelizer(self, function, argument_list, maxperchunk):
for x in range(0, len(argument_list), maxperchunk)]
for chunk in chunks:
self.logger.debug("Processing new chunk of size = %i", maxperchunk)
pool = mp.Pool(self.p_maxprocess)
pool = mp.Pool(self.p_maxprocess) # pylint: disable=consider-using-with
_ = [pool.apply_async(function, args=chunk[i],
error_callback=self.callback) for i in range(len(chunk))]
pool.close()
Expand Down

0 comments on commit 277e46f

Please sign in to comment.