BF: logan by hand call to calc_ki use of keyword trange, not range