From 100bc7fee17e9235da070e1bbf0fedd615de541f Mon Sep 17 00:00:00 2001 From: Till Ehrengruber Date: Wed, 3 Jan 2024 12:09:23 +0100 Subject: [PATCH] Add missing grid_type argument to scan operator decorator (#1404) --- src/gt4py/next/ffront/decorator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gt4py/next/ffront/decorator.py b/src/gt4py/next/ffront/decorator.py index 4abd8f156a..53159008f0 100644 --- a/src/gt4py/next/ffront/decorator.py +++ b/src/gt4py/next/ffront/decorator.py @@ -775,6 +775,7 @@ def scan_operator( forward: bool, init: core_defs.Scalar, backend: Optional[str], + grid_type: GridType, ) -> FieldOperator[foast.ScanOperator]: ... @@ -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]]: ... @@ -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]] @@ -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}, )