> There's a potential problem with piecewise: > > $ ./iterated-2d-solution.py > ./iterated-2d-solution.py:85: DeprecationWarning: Substitution using > function-call syntax and unnamed arguments is deprecated and will be > removed from a future release of Sage; you can use named arguments > instead, like EXPR(x=..., y=...) > s_a = this_s(terminal) > > "this_s" is a piecewise function of x: > > Piecewise defined function with 1 parts, [[(0, 0.500000000000000), > 4.00000000000000*(x - 0.500000000000000)^2 - 10.1278345910970*(x - > 0.500000000000000)*x + 5.78826325138787*x^2]] > > But if you name it explicitly, > > TypeError: __call__() got an unexpected keyword argument 'x'
So are you saying that Python and Piecewise functions will no longer behave correctly if this behavior goes from warning to error? It would be great if you had a "toy" example with full code; maybe there is a workaround that needs to become standard practice here... - kcrisman -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org