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 4a61580 commit 1a21888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion marmoset/imagecatalog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from .catalog import ImageCatalog


def list_all(args):
"""List all images."""
# pylint: disable-msg=unused-argument
Expand All @@ -11,6 +10,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 1a21888

Please sign in to comment.