ZGIS / semantique

Semantic Querying in Earth Observation Data Cubes
https://zgis.github.io/semantique/
Apache License 2.0
16 stars 6 forks source link

fix: autocomplete friendly layout parsing :wrench: #41

Closed fkroeber closed 5 months ago

fkroeber commented 5 months ago

Description

This PR ensures that the _parse_layout() function works as intended. Previously, this function was ill-defined (variable k was referenced before assignment) resulting in at least two unintended behaviours:

  1. Parsing of hierarchical layout.json files with more than 2 levels failed, e.g. when calling dc.retrieve("added_level", "appearance", "colortype", extent = extent) instead of dc.retrieve("appearance", "colortype", extent = extent).
  2. The else-part of the function allowed endless iterations.

Type of change

Select one or more relevant options:

Checklist: