diff --git a/pystencils/sympyextensions.py b/pystencils/sympyextensions.py index f788dbcd89850503e3116598e48b359b037eebb7..6d015ad9c9c0f446dc4a1d79acf4be422ca08d77 100644 --- a/pystencils/sympyextensions.py +++ b/pystencils/sympyextensions.py @@ -260,8 +260,8 @@ def subs_additive(expr: sp.Expr, replacement: sp.Expr, subexpression: sp.Expr, if not param_list: return current_expr else: - if current_expr.func == sp.Mul and sp.numbers.Zero() in param_list: - return sp.numbers.Zero() + if current_expr.func == sp.Mul and sp.core.numbers.Zero() in param_list: + return sp.n.core.numbers.Zero() else: return current_expr.func(*param_list, evaluate=False)