Skip to content

Commit

Permalink
Imagecatalog: Implement get_image method
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jun 18, 2020
1 parent 8730854 commit 566d29a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions marmoset/imagecatalog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ def list_all(args):
for image_metadata in metadata_list:
print_metadata(image_metadata)

def get_image(args):
"""Get Metadata for a single image"""
catalog = ImageCatalog
metadata = catalog.get_image_path(args.filename)
print_metadata(metadata)

def print_metadata(metadata_dict):
"""Print the image's metadata dict."""
Expand Down

0 comments on commit 566d29a

Please sign in to comment.