Skip to content

Commit

Permalink
Fix for issue YaleDHLab#270
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloOtano committed Apr 13, 2023
1 parent 48c8e6b commit 12d9f0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pixplot/pixplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ def filter_images(**kwargs):
image_paths = set()
duplicates = set()
for i in stream_images(image_paths=get_image_paths(**kwargs)):
if i.path in image_paths:
duplicates.add(i.path)
image_paths.add(i.path)
filename = clean_filename(i.path)
if filename in image_paths:
duplicates.add(filename)
image_paths.add(filename)
if duplicates:
raise Exception('''
Image filenames should be unique, but the following filenames are duplicated\n
Expand Down

0 comments on commit 12d9f0b

Please sign in to comment.