I'm very new to Python
and am trying to install the FuncDesigner package. It gives the following error:
Generator expression must be parenthesized if not sole argument and points to the following line:
kw = {'skipArrayCast':True} if isComplexArray else {}
r = ooPoint((v, x[S.oovar_indexes[i]:S.oovar_indexes[i+1]]) for i, v in enumerate(S._variables), **kw)
Any ideas what to change the line starting with "r = " to to get it to work?
I'm using a Python 3
version.
... Put the genex in parens, just like the error tells you to.
r = ooPoint(((v, x[S.oovar_indexes[i]:S.oovar_indexes[i+1]]) for i, v in enumerate(S._variables)), **kw)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With