Skip to content

Commit

Permalink
logger update - kamangir/bolt#1234
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Mar 4, 2024
1 parent dadd5c6 commit 3be9351
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hubble/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
11 changes: 7 additions & 4 deletions hubble/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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"
Expand Down

0 comments on commit 3be9351

Please sign in to comment.