Skip to content

Commit 1526bed

Browse files
committed
step function consistency
1 parent 429b093 commit 1526bed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

more_math/Parser/FloatEvalVisitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def visitPowFunc(self, ctx):
144144
def visitAtan2Func(self, ctx):
145145
return math.atan2(self.visit(ctx.expr(0)), self.visit(ctx.expr(1)))
146146
def visitStepFunc(self, ctx):
147-
edge = self.visit(ctx.expr(0))
148-
x = self.visit(ctx.expr(1))
147+
x = self.visit(ctx.expr(0))
148+
edge = self.visit(ctx.expr(1))
149149
return 1.0 if x >= edge else 0.0
150150

151151
# N-argument functions

0 commit comments

Comments
 (0)