def spectrum_fit_set_statistic(private_key, sender_id, msg_id, mtype, params, extra): """ spectrum_fit_set_statistic """ try: info("spectrum_fit_set_statistic()") ui = SherpaSession() try: ui.set_stat(params["stat"]) except Exception, e: reply_error(msg_id, sedexceptions.StatisticException, e, mtype) return reply_success(msg_id, mtype)