diff --git a/src/gt4py/next/program_processors/runners/dace/gtir_python_codegen.py b/src/gt4py/next/program_processors/runners/dace/gtir_python_codegen.py index 763c292836..199783d893 100644 --- a/src/gt4py/next/program_processors/runners/dace/gtir_python_codegen.py +++ b/src/gt4py/next/program_processors/runners/dace/gtir_python_codegen.py @@ -66,11 +66,11 @@ "less_equal": "({} <= {})", "greater": "({} > {})", "greater_equal": "({} >= {})", - "and_": "({} & {})", - "or_": "({} | {})", - "xor_": "({} ^ {})", + "and_": "({} and {})", + "or_": "({} or {})", + "xor_": "({} != {})", "mod": "({} % {})", - "not_": "(not {})", # ~ is not bitwise in numpy + "not_": "(not {})", }