Skip to content

Commit

Permalink
small fix from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nfarabullini committed Mar 13, 2024
1 parent 478835a commit 81bb432
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docs/user/next/QuickstartGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ The concepts are demonstrated through a simple application that adds two fields.

+++


#### Importing features

The following snippet imports the most commonly used features that are needed to run the code in this document. Numpy is also required by the examples.
Expand Down
2 changes: 1 addition & 1 deletion src/gt4py/next/embedded/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _tuple_at(
) -> core_defs.Scalar | tuple[core_defs.ScalarT | tuple, ...]:
@utils.tree_map
def impl(field: common.Field | core_defs.Scalar) -> core_defs.Scalar:
res = field[pos] if common.is_field(field) else field
res = field[pos].as_scalar() if common.is_field(field) else field
assert core_defs.is_scalar_type(res)
return res

Expand Down

0 comments on commit 81bb432

Please sign in to comment.