This piecewise function work correctly
score = piecewise([([i,i], ncand - i) for i in range(ncand)])
because ncand
is defined earlier in my notebook. when I typeset say scor(1)
It returns what I expect. But I would like that ncand be a variable.