show_method
- sherpa.astro.ui.show_method(outfile=None, clobber=False) None
Display the current optimization method and options.
- Parameters:
outfile (str, optional) – If not given the results are displayed to the screen, otherwise it is taken to be the name of the file to write the results to.
clobber (bool, optional) – If
outfileis notNone, then this flag controls whether an existing file can be overwritten (True) or if it raises an exception (False, the default setting).
- Raises:
sherpa.utils.err.IOErr – If
outfilealready exists andclobberisFalse.
See also
get_methodReturn an optimization method.
get_method_optReturn one or all options of the current optimization method.
show_allReport the current state of the Sherpa session.
Examples
>>> set_method('levmar') >>> show_method() Optimization Method: LevMar name = levmar ftol = 1.19209289551e-07 xtol = 1.19209289551e-07 gtol = 1.19209289551e-07 maxfev = x epsfcn = 1.19209289551e-07 factor = 100.0 verbose = 0