Skip to content

Commit

Permalink
chore: remove redundant list comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
bathienle committed Aug 14, 2024
1 parent 2b67064 commit e421418
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cbir/retrieval/retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,4 @@ def search(
labels, distances = self.indexer.search(outputs, nrt_neigh)
filenames = [self.store.get(str(l)) or "" for l in labels]

return [
(filename, distance) for filename, distance in zip(filenames, distances)
]
return list(zip(filenames, distances))

0 comments on commit e421418

Please sign in to comment.