Skip to content

Commit

Permalink
fix: Update layout parsing of Opendatacube configuration. Refs #36 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
luukvdmeer committed Jan 16, 2024
1 parent 80542d2 commit 5b2baf6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions semantique/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,8 @@ def _parse(obj, ref):
if all([x in obj for x in ["type", "values"]]):
obj["reference"] = copy.deepcopy(ref)
if isinstance(obj["values"], list):
vals = {}
vals["labels"] = {x["label"]:x["id"] for x in obj["values"]}
vals["descriptions"] = {x["description"]:x["id"] for x in obj["values"]}
obj["values"] = vals
obj["labels"] = {x["label"]:x["id"] for x in obj["values"]}
obj["descriptions"] = {x["description"]:x["id"] for x in obj["values"]}
del ref[-1]
is_layer = True
else:
Expand Down

0 comments on commit 5b2baf6

Please sign in to comment.