From 3fe34309e61e956ade9b812066627709c9881494 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 18 Jun 2020 14:37:05 +0200 Subject: [PATCH] Imagecatalog: Implement `get_image` method --- marmoset/imagecatalog/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/marmoset/imagecatalog/__init__.py b/marmoset/imagecatalog/__init__.py index d1ddf9a..f364319 100644 --- a/marmoset/imagecatalog/__init__.py +++ b/marmoset/imagecatalog/__init__.py @@ -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."""