Loading pysen/optimization.py +3 −2 Original line number Diff line number Diff line Loading @@ -5,14 +5,15 @@ PySEN optimization routines References: [1] Richard Brent, Algorithms for Minimization Without Derivatives, Dover, 2002. [2] M. Monkenbusch, Downhill minimization FORTRAN algorithm i (part of echodet) [2] M. Monkenbusch, Downhill minimization FORTRAN algorithm (part of echodet) """ import numpy as np import scipy.optimize as opt #pylint: disable=no-member EPS = np.finfo(float).eps #pylint: enable=no-member C_GOLDEN = 0.5 * ( 3.0 - np.sqrt ( 5.0 ) ) def brent( func, a, b, max_iter=1000, tol=None): Loading pysen/plot/qplot.py +2 −0 Original line number Diff line number Diff line Loading @@ -211,8 +211,10 @@ def plot_coverage(axes, *data, **kwargs): if not full and not center: center = True #pylint: disable=no-member limq = np.finfo(float).max, np.finfo(float).min limt = np.finfo(float).max, np.finfo(float).min #pylint: enable=no-member # data loop colors =iter(cmap(np.linspace(0.0,1.0,len(data)))) Loading Loading
pysen/optimization.py +3 −2 Original line number Diff line number Diff line Loading @@ -5,14 +5,15 @@ PySEN optimization routines References: [1] Richard Brent, Algorithms for Minimization Without Derivatives, Dover, 2002. [2] M. Monkenbusch, Downhill minimization FORTRAN algorithm i (part of echodet) [2] M. Monkenbusch, Downhill minimization FORTRAN algorithm (part of echodet) """ import numpy as np import scipy.optimize as opt #pylint: disable=no-member EPS = np.finfo(float).eps #pylint: enable=no-member C_GOLDEN = 0.5 * ( 3.0 - np.sqrt ( 5.0 ) ) def brent( func, a, b, max_iter=1000, tol=None): Loading
pysen/plot/qplot.py +2 −0 Original line number Diff line number Diff line Loading @@ -211,8 +211,10 @@ def plot_coverage(axes, *data, **kwargs): if not full and not center: center = True #pylint: disable=no-member limq = np.finfo(float).max, np.finfo(float).min limt = np.finfo(float).max, np.finfo(float).min #pylint: enable=no-member # data loop colors =iter(cmap(np.linspace(0.0,1.0,len(data)))) Loading