We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
get_image
1 parent 4a61580 commit 1a21888Copy full SHA for 1a21888
marmoset/imagecatalog/__init__.py
@@ -2,7 +2,6 @@
2
3
from .catalog import ImageCatalog
4
5
-
6
def list_all(args):
7
"""List all images."""
8
# pylint: disable-msg=unused-argument
@@ -11,6 +10,11 @@ def list_all(args):
11
10
for image_metadata in metadata_list:
12
print_metadata(image_metadata)
13
+def get_image(args):
14
+ """Get Metadata for a single image"""
15
+ catalog = ImageCatalog
16
+ metadata = catalog.get_image_path(args.filename)
17
+ print_metadata(metadata)
18
19
def print_metadata(metadata_dict):
20
"""Print the image's metadata dict."""
0 commit comments