else:
// translate by pixels
if isinstance(translate_px, dict):
ia.do_assert("x" in translate_px or "y" in translate_px)
x = translate_px.get("x", 0)
y = translate_px.get("y", 0)
self.translate = (
iap.handle_discrete_param(x, "translate_px["x"]", value_range=None, tuple_to_uniform=True,
After Change
str(available_orders_str), order))
self.order = iap.Deterministic(order)
elif isinstance(order, list):
valid_types = all(
[ia.is_single_integer(val) or ia.is_string(val)
for val in order])
assert valid_types, (
"Expected order list to only contain integers/strings, got "
"types %s." % (str([type(val) for val in order]),))
valid_orders = all(