diff options
author | aria1th <35677394+aria1th@users.noreply.github.com> | 2023-11-27 13:25:28 +0000 |
---|---|---|
committer | aria1th <35677394+aria1th@users.noreply.github.com> | 2023-11-27 13:25:28 +0000 |
commit | ec78354efa179b64e92d6b98d781f6572b4eb084 (patch) | |
tree | c3237c4932cf321e3109049ce86c58913cef1123 /extensions-builtin/hypertile/scripts/hypertile_xyz.py | |
parent | 524d6a4dbae68bf557d9c5fe686707d96841e0b5 (diff) | |
download | stable-diffusion-webui-gfx803-ec78354efa179b64e92d6b98d781f6572b4eb084.tar.gz stable-diffusion-webui-gfx803-ec78354efa179b64e92d6b98d781f6572b4eb084.tar.bz2 stable-diffusion-webui-gfx803-ec78354efa179b64e92d6b98d781f6572b4eb084.zip |
hypertile_xyz: we don't need isnumeric check for AxisOption
Diffstat (limited to 'extensions-builtin/hypertile/scripts/hypertile_xyz.py')
-rw-r--r-- | extensions-builtin/hypertile/scripts/hypertile_xyz.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/extensions-builtin/hypertile/scripts/hypertile_xyz.py b/extensions-builtin/hypertile/scripts/hypertile_xyz.py index 928e9965..9e96ae3c 100644 --- a/extensions-builtin/hypertile/scripts/hypertile_xyz.py +++ b/extensions-builtin/hypertile/scripts/hypertile_xyz.py @@ -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: |