@@ -157,7 +157,7 @@ def testParseEquation(self):
157
157
eq .x .setValue (x )
158
158
eq .B .setValue (B )
159
159
eq .C .setValue (C )
160
- f = lambda A , x , B , C : A * sin (0.5 * x ) + divide (B , C )
160
+ f = lambda A , x , B , C : A * sin (0.5 * x ) + divide (B , C ) # noqa: E731
161
161
self .assertTrue (array_equal (eq (), f (A , x , B , C )))
162
162
163
163
# Make sure that the arguments of eq are listed in the order in which
@@ -170,7 +170,7 @@ def testParseEquation(self):
170
170
sigma = 0.1
171
171
eq .x .setValue (x )
172
172
eq .sigma .setValue (sigma )
173
- f = lambda x , sigma : sqrt (e ** (- 0.5 * (x / sigma ) ** 2 ))
173
+ f = lambda x , sigma : sqrt (e ** (- 0.5 * (x / sigma ) ** 2 )) # noqa: E731
174
174
self .assertTrue (numpy .allclose (eq (), f (x , sigma )))
175
175
176
176
self .assertEqual (eq .args , [eq .x , eq .sigma ])
@@ -246,7 +246,7 @@ def _f(a, b):
246
246
sigma = builder .ArgumentBuilder (name = "sigma" , value = 0.1 )
247
247
beq = sqrt (e ** (- 0.5 * (x / sigma ) ** 2 ))
248
248
eq = beq .getEquation ()
249
- f = lambda x , sigma : sqrt (e ** (- 0.5 * (x / sigma ) ** 2 ))
249
+ f = lambda x , sigma : sqrt (e ** (- 0.5 * (x / sigma ) ** 2 )) # noqa: E731
250
250
self .assertTrue (numpy .allclose (eq (), numpy .sqrt (e ** (- 0.5 * (_x / 0.1 ) ** 2 ))))
251
251
252
252
# Equation with Equation
0 commit comments