From 2aafdc107ec12d9e191f8a49a24c310c80652c2d Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Tue, 27 Jul 2021 22:58:24 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index c0c1bc6..9cb19cf 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -1619,6 +1619,7 @@ def kernel_25(images): def kernel_23(o_18, o_22, ids=None): import numpy + import tqdm if ids is None: ids = numpy.s_[:] @@ -1626,9 +1627,9 @@ def kernel_23(o_18, o_22, ids=None): t1 = numpy.arange(len(o_22['t4'])) t2 = t1[ids] - pprint.pprint(ids) + pprint.pprint(ids[:5]) t7 = [] - for o in t2: + for o in tqdm.tqdm(t2): t3 = o_22['t4'][o] t4 = [ o['image_canvas']