Skip to content

Commit

Permalink
Merge pull request #265 from NASA-IMPACT/fix/collection-print
Browse files Browse the repository at this point in the history
Remove comma in collection generation
  • Loading branch information
smohiudd authored Nov 26, 2024
2 parents 7e05d2f + 2974701 commit 5d8757e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dags/veda_data_pipeline/utils/collection_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def create_cog_collection(self, dataset: Dict[str, Any]) -> dict:

# Override the extents if they exists
if spatial_extent := dataset.get("spatial_extent"):
collection_stac["extent"]["spatial"] = {"bbox": [list(spatial_extent.values())]},
collection_stac["extent"]["spatial"] = {"bbox": [list(spatial_extent.values())]}

if temporal_extent := dataset.get("temporal_extent"):
collection_stac["extent"]["temporal"] = {
Expand All @@ -118,7 +118,6 @@ def create_cog_collection(self, dataset: Dict[str, Any]) -> dict:
"description": "Cloud optimized default layer to display on map",
}
}
print(collection_stac)
return collection_stac

def generate_stac(
Expand Down

0 comments on commit 5d8757e

Please sign in to comment.