summaryrefslogtreecommitdiffstats
path: root/polymatrix/expression/init/initevalexpr.py
diff options
context:
space:
mode:
Diffstat (limited to 'polymatrix/expression/init/initevalexpr.py')
-rw-r--r--polymatrix/expression/init/initevalexpr.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/polymatrix/expression/init/initevalexpr.py b/polymatrix/expression/init/initevalexpr.py
index 9d0fc0d..525a697 100644
--- a/polymatrix/expression/init/initevalexpr.py
+++ b/polymatrix/expression/init/initevalexpr.py
@@ -5,14 +5,14 @@ from polymatrix.expression.impl.evalexprimpl import EvalExprImpl
def init_eval_expr(
underlying: ExpressionBaseMixin,
- values: tuple,
- variables: tuple = None,
+ variables: tuple,
+ values: tuple = None,
):
- if variables is None:
- assert isinstance(values, tuple)
+ if values is None:
+ assert isinstance(variables, tuple)
- variables, values = tuple(zip(*values))
+ variables, values = tuple(zip(*variables))
elif isinstance(values, np.ndarray):
values = tuple(values)
@@ -20,8 +20,8 @@ def init_eval_expr(
elif not isinstance(values, tuple):
values = (values,)
- if not isinstance(variables, tuple):
- variables = (variables,)
+ # if not isinstance(variables, tuple):
+ # variables = (variables,)
return EvalExprImpl(
underlying=underlying,