@@ -155,7 +155,7 @@ def find_root(f, a, b, xtol=10e-13, rtol=2.0**-50, maxiter=100, full_output=Fals
155155 import scipy .optimize
156156 import numpy
157157 if int (numpy .version .short_version [0 ]) > 1 :
158- _ = numpy .set_printoptions (legacy = "1.25" )
158+ numpy .set_printoptions (legacy = "1.25" )
159159
160160 g = lambda x : float (f (x ))
161161 brentqRes = scipy .optimize .brentq (g , a , b ,
@@ -290,7 +290,7 @@ def find_local_minimum(f, a, b, tol=1.48e-08, maxfun=500):
290290 import scipy .optimize
291291 import numpy
292292 if int (numpy .version .short_version [0 ]) > 1 :
293- _ = numpy .set_printoptions (legacy = "1.25" )
293+ numpy .set_printoptions (legacy = "1.25" )
294294
295295 xmin , fval , iter , funcalls = scipy .optimize .fminbound (f , a , b , full_output = 1 , xtol = tol , maxfun = maxfun )
296296 return fval , xmin
@@ -400,7 +400,7 @@ def minimize(func, x0, gradient=None, hessian=None, algorithm='default',
400400 from sage .ext .fast_callable import fast_callable
401401 import numpy
402402 if int (numpy .version .short_version [0 ]) > 1 :
403- _ = numpy .set_printoptions (legacy = "1.25" )
403+ numpy .set_printoptions (legacy = "1.25" )
404404
405405 from scipy import optimize
406406 if isinstance (func , Expression ):
@@ -539,7 +539,7 @@ def minimize_constrained(func, cons, x0, gradient=None, algorithm='default', **a
539539 from sage .ext .fast_callable import fast_callable
540540 import numpy
541541 if int (numpy .version .short_version [0 ]) > 1 :
542- _ = numpy .set_printoptions (legacy = "1.25" )
542+ numpy .set_printoptions (legacy = "1.25" )
543543 from scipy import optimize
544544 function_type = type (lambda x ,y : x + y )
545545
@@ -662,7 +662,7 @@ def find_fit(data, model, initial_guess=None, parameters=None, variables=None, s
662662 """
663663 import numpy
664664 if int (numpy .version .short_version [0 ]) > 1 :
665- _ = numpy .set_printoptions (legacy = "1.25" )
665+ numpy .set_printoptions (legacy = "1.25" )
666666
667667 if not isinstance (data , numpy .ndarray ):
668668 try :
0 commit comments