select_i_before

PlasmaCalcs.tools.array_select.select_i_before(listlike, x)

returns the index of the value closest to x, but not larger than x.

If x iterable, [select_i_before(y) for y in x]