diff options
-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: |