Skip to content

Commit

Permalink
image_cat_wall fix the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Jun 13, 2024
1 parent a8b943d commit 90da5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processors/visualisation/image_category_wall.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ def process(self):
# Map post IDs to filenames
if image_dataset.type == "video-hasher-1":
# We know the post ID is the filename.stem as this dataset is derived from the image dataset
filename_map = {filename.stem + ".mp4": filename for filename in staging_area.iterdir()}
filename_map = {filename.stem + ".mp4": [filename] for filename in staging_area.iterdir()}
elif special_case:
# We know the post ID is the filename.stem as this dataset is derived from the image dataset
filename_map = {filename.stem: filename for filename in staging_area.iterdir()}
filename_map = {filename.stem: [filename] for filename in staging_area.iterdir()}
else:
# Use image metadata to map post IDs to filenames
with open(staging_area.joinpath('.metadata.json')) as file:
Expand Down

0 comments on commit 90da5d2

Please sign in to comment.