summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polymatrix/expression/mixins/combinationsexprmixin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/polymatrix/expression/mixins/combinationsexprmixin.py b/polymatrix/expression/mixins/combinationsexprmixin.py
index 483da96..c42aa89 100644
--- a/polymatrix/expression/mixins/combinationsexprmixin.py
+++ b/polymatrix/expression/mixins/combinationsexprmixin.py
@@ -55,13 +55,13 @@ class CombinationsExprMixin(ExpressionBaseMixin):
# Column vectors are OK
elif ncols == 1:
- degrees = (deg_pm.at(i, 0).constant()
- for i in range(nrows))
+ degrees = tuple(deg_pm.at(i, 0).constant()
+ for i in range(nrows))
# Row vectors are OK
elif nrows == 1:
- degrees = (deg_pm.at(0, i).constant()
- for i in range(ncols))
+ degrees = tuple(deg_pm.at(0, i).constant()
+ for i in range(ncols))
# Matrices are not OK
else: