diff options
author | Michael Schneeberger <michael.schneeberger@fhnw.ch> | 2022-12-06 13:18:54 +0100 |
---|---|---|
committer | Michael Schneeberger <michael.schneeberger@fhnw.ch> | 2022-12-06 13:18:54 +0100 |
commit | ea41cea32fc92c95282edd27d66d70728effbdc6 (patch) | |
tree | be1fc57f2353f7c54f91b3c591f2dce4994ee052 | |
parent | allow predicator in filter expression to have empty entries (diff) | |
download | polymatrix-ea41cea32fc92c95282edd27d66d70728effbdc6.tar.gz polymatrix-ea41cea32fc92c95282edd27d66d70728effbdc6.zip |
from sympy expression does not accept numpy arrays
Diffstat (limited to '')
-rw-r--r-- | polymatrix/expression/mixins/fromsympyexprmixin.py | 2 |
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: |