Commit ec78354e authored by aria1th's avatar aria1th

hypertile_xyz: we don't need isnumeric check for AxisOption

parent 524d6a4d
...@@ -7,10 +7,7 @@ def int_applier(value_name:str, min_range:int = -1, max_range:int = -1): ...@@ -7,10 +7,7 @@ def int_applier(value_name:str, min_range:int = -1, max_range:int = -1):
""" """
Returns a function that applies the given value to the given value_name in opts.data. Returns a function that applies the given value to the given value_name in opts.data.
""" """
# convert to int
def validate(value_name:str, value:str): def validate(value_name:str, value:str):
if not value.isnumeric():
raise ValueError(f"Value {value} for {value_name} must be an integer")
value = int(value) value = int(value)
# validate value # validate value
if not min_range == -1: if not min_range == -1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment