From 3be935122667354943f3c9eaa98f90de57a5d47d Mon Sep 17 00:00:00 2001 From: kamangir Date: Mon, 4 Mar 2024 00:20:14 -0800 Subject: [PATCH] logger update - kamangir/bolt#1234 --- hubble/__init__.py | 2 +- hubble/datasets.py | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hubble/__init__.py b/hubble/__init__.py index 5be42e4..5594ba4 100644 --- a/hubble/__init__.py +++ b/hubble/__init__.py @@ -4,4 +4,4 @@ DESCRIPTION = f"{ICON} tools to access and process Hubble Space Telescope imagery and other datasets on AWS Open Data Registry." -VERSION = "3.301.1" +VERSION = "3.302.1" diff --git a/hubble/datasets.py b/hubble/datasets.py index d532cae..878b177 100644 --- a/hubble/datasets.py +++ b/hubble/datasets.py @@ -21,19 +21,21 @@ def get( return "--requester-pays" if RequesterPays else "--no-sign-request" - elif what == "metadata": + if what == "metadata": return file.load_yaml( get( dataset_name, "metadata_filename", ) )[1] - elif what == "metadata_filename": + + if what == "metadata_filename": return os.path.join( env.abcli_path_git, f"open-data-registry/datasets/{dataset_name}.yaml", ) - elif what.startswith("resource:"): + + if what.startswith("resource:"): resource_type = string.after(what, "resource:") metadata = get(dataset_name, "metadata") @@ -45,7 +47,8 @@ def get( for resource in metadata.get("Resources", {}) if resource.get("Type") == resource_type ] - elif what == "s3_uri": + + if what == "s3_uri": resources = get(dataset_name, "resource:S3 Bucket") if not resources: return "s3_uri:resource-not-found"