From 5a94a1ff7fdceb6b757a3f43dc53cd7a812f1385 Mon Sep 17 00:00:00 2001 From: Puyuan Liu <121119211+puyuanOT@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:59:53 -0700 Subject: [PATCH] Update filter.py --- deeplake/core/query/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deeplake/core/query/filter.py b/deeplake/core/query/filter.py index 274f49b040..7fa0b6a83d 100644 --- a/deeplake/core/query/filter.py +++ b/deeplake/core/query/filter.py @@ -191,6 +191,7 @@ def _event_callback(): def filter_slice(indices: Sequence[int]): result = list() for i in indices: + print(getattr(dataset, "index_mapping_dict", None)) if getattr(dataset, "index_mapping_dict", None): # If we are filtering an already filtered dataset i = dataset.index_mapping_dict[i] @@ -239,7 +240,6 @@ def pg_filter_slice(pg_callback, indices: Sequence[int]): if progressbar: result = compute.map_with_progress_bar(pg_filter_slice, idx, total_length=len(dataset)) # type: ignore else: - print(getattr(dataset, "index_mapping_dict", None)) result = compute.map(filter_slice, idx) # type: ignore print(result) index_map = [k for x in result for k in x] # unfold the result map