Skip to content

Commit

Permalink
specify collection assets as yaml list rather than dict
Browse files Browse the repository at this point in the history
  • Loading branch information
dchandan committed Feb 28, 2024
1 parent 19412a5 commit f750fa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ spatialextent: [-180, -90, 180, 90]
temporalextent: ['1850-01-01', '2500-01-01']

links:
homepage:
rel: about
- rel: about
title : Project homepage
target : https://wcrp-cmip.org/cmip-phase-6-cmip6/
media_type: text/html
license:
rel: license
- rel: license
title : License
target : https://raw.githubusercontent.com/WCRP-CMIP/CMIP6_CVs/main/LICENSE-CC-BY
media_type: text/plain
Expand Down
2 changes: 1 addition & 1 deletion STACpopulator/populator_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __make_collection_links(self) -> List[pystac.Link]:
"""
links = []
config_links = self._collection_info.pop("links", {})
for link_name, link_info in config_links.items():
for link_info in config_links:
links.append(pystac.Link(**link_info))
return links

Expand Down

0 comments on commit f750fa5

Please sign in to comment.