summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Schneeberger <michael.schneeberger@fhnw.ch>2022-12-06 13:18:54 +0100
committerMichael Schneeberger <michael.schneeberger@fhnw.ch>2022-12-06 13:18:54 +0100
commitea41cea32fc92c95282edd27d66d70728effbdc6 (patch)
treebe1fc57f2353f7c54f91b3c591f2dce4994ee052
parentallow predicator in filter expression to have empty entries (diff)
downloadpolymatrix-ea41cea32fc92c95282edd27d66d70728effbdc6.tar.gz
polymatrix-ea41cea32fc92c95282edd27d66d70728effbdc6.zip
from sympy expression does not accept numpy arrays
-rw-r--r--polymatrix/expression/mixins/fromsympyexprmixin.py2
1 files changed, 1 insertions, 1 deletions
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: