Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def execute(self, value, a = 0.0, b = 0.0, c = 0.0, d = 0.0):
}

def eval_(node):
if isinstance(node, ast.Num): # number
return node.n
if isinstance(node, ast.Constant): # number
return node.value
elif isinstance(node, ast.Name): # variable
if node.id == "a":
return a
Expand Down Expand Up @@ -571,4 +571,4 @@ def tensorShape(tensor):
"SimpleMathPercent+": "🔧 Simple Math Percent",
"SimpleMathSlider+": "🔧 Simple Math Slider",
"SimpleMathSliderLowRes+": "🔧 Simple Math Slider low-res",
}
}