Skip to content

Commit 8e838f3

Browse files
committed
__eval_unary
1 parent 420c598 commit 8e838f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/diffpy/srfit/equation/builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def __eval_binary(self, other, OperatorClass, onleft=True):
479479
opbuilder.literal = op
480480
return opbuilder
481481

482-
def __evalUnary(self, OperatorClass):
482+
def __eval_unary(self, OperatorClass):
483483
"""Evaluate a unary function."""
484484
op = OperatorClass()
485485
op.addLiteral(self.literal)
@@ -536,7 +536,7 @@ def __rmod__(self, other):
536536
return self.__eval_binary(other, literals.RemainderOperator, False)
537537

538538
def __neg__(self):
539-
return self.__evalUnary(literals.NegationOperator)
539+
return self.__eval_unary(literals.NegationOperator)
540540

541541

542542
# These are used by the class.

0 commit comments

Comments
 (0)