Skip to content

Commit

Permalink
Add missing grid_type argument to scan operator decorator (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
tehrengruber authored Jan 3, 2024
1 parent b21dd56 commit 100bc7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gt4py/next/ffront/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ def scan_operator(
forward: bool,
init: core_defs.Scalar,
backend: Optional[str],
grid_type: GridType,
) -> FieldOperator[foast.ScanOperator]:
...

Expand All @@ -786,6 +787,7 @@ def scan_operator(
forward: bool,
init: core_defs.Scalar,
backend: Optional[str],
grid_type: GridType,
) -> Callable[[types.FunctionType], FieldOperator[foast.ScanOperator]]:
...

Expand All @@ -797,6 +799,7 @@ def scan_operator(
forward: bool = True,
init: core_defs.Scalar = 0.0,
backend=None,
grid_type: GridType = None,
) -> (
FieldOperator[foast.ScanOperator]
| Callable[[types.FunctionType], FieldOperator[foast.ScanOperator]]
Expand Down Expand Up @@ -834,6 +837,7 @@ def scan_operator_inner(definition: types.FunctionType) -> FieldOperator:
return FieldOperator.from_function(
definition,
backend,
grid_type,
operator_node_cls=foast.ScanOperator,
operator_attributes={"axis": axis, "forward": forward, "init": init},
)
Expand Down

0 comments on commit 100bc7f

Please sign in to comment.