From 566d29a58dbf1732149634fee505400891ee2253 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."""