mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-26 20:02:31 -08:00
hypertile_xyz: we don't need isnumeric check for AxisOption
This commit is contained in:
parent
524d6a4dba
commit
ec78354efa
1 changed files with 0 additions and 3 deletions
|
|
@ -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.
|
||||
"""
|
||||
# convert to int
|
||||
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)
|
||||
# validate value
|
||||
if not min_range == -1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue