get_method_name
- sherpa.astro.ui.get_method_name() str
Return the name of current Sherpa optimization method.
- Returns:
name – The name of the current optimization method, in lower case. This may not match the value sent to
set_method
because some methods can be set by multiple names.- Return type:
See also
get_method
Return an optimization method.
get_method_opt
Get the options for the current optimization method.
Examples
>>> get_method_name() 'levmar'
The ‘neldermead’ method can also be referred to as ‘simplex’:
>>> set_method('simplex') >>> get_method_name() 'neldermead'