def constrain_to_multiple_of(self, x):
    return (np.round((x / self.__multiple_of)) * self.__multiple_of).astype(int)
def constrain_to_multiple_of(self, x):
    return (np.round((x / self.__multiple_of)) * self.__multiple_of).astype(int)