get_num_par¶
-
sherpa.ui.
get_num_par
(id=None)¶ Return the number of parameters in a model expression.
Parameters: id (int or str, optional) – The data set containing the model expression. If not given then the default identifier is used, as returned by get_default_id. Returns: npar Return type: int Raises: sherpa.utils.err.IdentifierErr
– If no model expression has been set for the data set (with set_model or set_source).See also
get_num_par_frozen()
- Return the number of frozen parameters.
get_num_par_thawed()
- Return the number of thawed parameters.
set_model()
- Set the source model expression for a data set.