From ea41cea32fc92c95282edd27d66d70728effbdc6 Mon Sep 17 00:00:00 2001 From: Michael Schneeberger Date: Tue, 6 Dec 2022 13:18:54 +0100 Subject: from sympy expression does not accept numpy arrays --- polymatrix/expression/mixins/fromsympyexprmixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymatrix/expression/mixins/fromsympyexprmixin.py b/polymatrix/expression/mixins/fromsympyexprmixin.py index 8414a25..e2efcd4 100644 --- a/polymatrix/expression/mixins/fromsympyexprmixin.py +++ b/polymatrix/expression/mixins/fromsympyexprmixin.py @@ -68,7 +68,7 @@ class FromSympyExprMixin(ExpressionBaseMixin): terms_row_col[monomial] = value - elif isinstance(poly_data, np.ndarray) and np.issubdtype(poly_data, np.number): + elif isinstance(poly_data, np.number): terms_row_col = {tuple(): float(poly_data)} else: -- cgit v1.2.1