scamp.utilities.round_x_to_pow_of_y

scamp.utilities.round_x_to_pow_of_y(x, y)[source]

Returns the integer power of y that is closest to x (above or below). The first argument can optionally be a list, tuple, or iterator, in which case this is performed on each element.