Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
ec78354e
Commit
ec78354e
authored
Nov 27, 2023
by
aria1th
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hypertile_xyz: we don't need isnumeric check for AxisOption
parent
524d6a4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
extensions-builtin/hypertile/scripts/hypertile_xyz.py
extensions-builtin/hypertile/scripts/hypertile_xyz.py
+0
-3
No files found.
extensions-builtin/hypertile/scripts/hypertile_xyz.py
View file @
ec78354e
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment