-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version incompatibility with new Pymbolic release 2024.1 #435
Comments
I have solved this problem by adding manually the diff --git a/loki/expression/operations.py b/loki/expression/operations.py
index 03a67753..1cf4d7f6 100644
--- a/loki/expression/operations.py
+++ b/loki/expression/operations.py
@@ -13,6 +13,7 @@ nevertheless change code results.
from sys import intern
import pymbolic.primitives as pmbl
+from pymbolic.typing import ExpressionT
from loki.expression.symbols import (
StringLiteral, Sum, Product, Quotient, Power,
@@ -60,10 +61,11 @@ class ParenthesisedPow(Power):
make_stringifier = loki_make_stringifier
-class StringConcat(pmbl._MultiChildExpression):
+class StringConcat(pmbl.Expression):
"""
Implements string concatenation in a way similar to :class:`Sum`.
"""
+ children: tuple[ExpressionT, ...]
def __add__(self, other):
if isinstance(other, (StringConcat, StringLiteral, pmbl.Variable)): However, this is only the beginning of problems! In pymbolic, all has started with this commit: inducer/pymbolic@1dcc9c5#diff-a27cda1a4fd5316514a9277c4733b3a23cc10fcef61c6b3f847c25085ee73863 where they removed
I think this requires further analysis and probably some architectural changes. I might be of use in the future, but I would need to know the direction to take :P |
What happened?
Following the upstream update to Pymbolic
v2024.1
ecWAM regression triggers an issue in the Loki expression layer during the confirgure/plan stage.What are the steps to reproduce the bug?
With latest Pymbolic run
py.test -vs loki/transformations/ -k ecwam
Version
main
Platform (OS and architecture)
Linux, Python 3.11
Relevant log output
Accompanying data
No response
Organisation
No response
The text was updated successfully, but these errors were encountered: