Skip to content

Commit

Permalink
Fix bug in metadata extraction: only consider offset labels (#173)
Browse files Browse the repository at this point in the history
This bug was exposed by a fix in the GT4Py lowering GridTools/gt4py#1196.
  • Loading branch information
havogt authored Mar 7, 2023
1 parent c10067a commit 68f515b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyutils/src/icon4py/pyutils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def scan_for_offsets(fvprog: Program) -> list[eve.concepts.SymbolRef]:
fvprog.itir.pre_walk_values()
.if_isinstance(itir.OffsetLiteral)
.getattr("value")
.if_isinstance(str)
.to_list()
)
all_dim_labels = [dim.value for dim in all_dims if dim.kind == DimensionKind.LOCAL]
Expand Down

0 comments on commit 68f515b

Please sign in to comment.