Changeset 2e08a9f in sasview for fittingview/src
- Timestamp:
- Sep 8, 2011 5:06:02 PM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- f7f6886
- Parents:
- 10675c3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitting.py
rf7ef313 r2e08a9f 701 701 if sim_fitter is None: 702 702 fitter = Fit(self._fit_engine) 703 print "onfit id ", id(fitproblem)704 703 self._fit_helper(fitproblem, pars, fitter, fit_id) 705 704 fitter_list.append(fitter) … … 858 857 """ 859 858 receive and event telling to update a panel with a name starting with 860 event.panel_name. this method update slicer panel for a given interactor. 861 862 :param event: contains type of slicer , paramaters for updating the panel 863 and panel_name to find the slicer 's panel concerned. 859 event.panel_name. this method update slicer panel 860 for a given interactor. 861 862 :param event: contains type of slicer , paramaters for updating 863 the panel and panel_name to find the slicer 's panel concerned. 864 864 """ 865 865 for item in self.parent.panels: … … 960 960 batch_result = {"Chi2":[]} 961 961 for index in range(len(pars)): 962 963 962 batch_result[pars[index]] = [] 963 batch_result["error on %s" % pars[index]] = [] 964 964 for res in result: 965 965 if res is None: 966 continue 967 batch_result["Chi2"].append(res.fitness) 968 for index in range(len(pars)): 969 batch_result[pars[index]].append(res.pvec[index]) 970 item = res.stderr[index] 971 batch_result["error on %s" % pars[index]].append(item) 966 null_value = numpy.nan 967 batch_result["Chi2"].append(null_value) 968 for index in range(len(pars)): 969 batch_result[pars[index]].append(null_value) 970 item = null_value 971 batch_result["error on %s" % pars[index]].append(item) 972 else: 973 batch_result["Chi2"].append(res.fitness) 974 for index in range(len(pars)): 975 batch_result[pars[index]].append(res.pvec[index]) 976 item = res.stderr[index] 977 batch_result["error on %s" % pars[index]].append(item) 972 978 pid = page_id[0] 973 979 self.page_finder[pid].set_result(result=batch_result) … … 1259 1265 new_plot.xaxis(_xaxis, _xunit) 1260 1266 new_plot.yaxis(_yaxis, _yunit) 1261 self.page_finder[page_id].set_theory_data(data=new_plot, fid=data.id) 1267 self.page_finder[page_id].set_theory_data(data=new_plot, 1268 fid=data.id) 1262 1269 self.parent.update_theory(data_id=data.id, theory=new_plot, 1263 1270 state=state) … … 1277 1284 if update_chisqr: 1278 1285 wx.PostEvent(current_pg, 1279 Chi2UpdateEvent(output=self._cal_chisqr(data=data, 1286 Chi2UpdateEvent(output=self._cal_chisqr( 1287 data=data, 1280 1288 page_id=page_id, 1281 1289 index=index)))
Note: See TracChangeset
for help on using the changeset viewer.