Changeset 87e2f81 in sasview for fittingview/src/sans
- Timestamp:
- Oct 3, 2011 5:33:58 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:
- 9149431
- Parents:
- 18a6556
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitting.py
rf64a4b7 r87e2f81 1044 1044 cell.label = null_value 1045 1045 cell.value = null_value 1046 cell.object = [None] 1046 1047 batch_outputs["Chi2"].append(cell) 1047 1048 for index in range(len(pars)): … … 1098 1099 fitproblem = self.page_finder[pid][fid] 1099 1100 index = self.page_finder[pid].nbr_residuals_computed - 1 1100 print "index", index1101 1101 residuals = fitproblem.get_residuals() 1102 1102 theory_data = fitproblem.get_theory_data() … … 1111 1111 cell.value = index 1112 1112 theory_data.id = wx.NewId() 1113 theory_data.name = data.name + "[%s]" % str(model.__class__.__name__) 1113 1114 cell.object = [data, theory_data] 1114 1115 … … 1124 1125 batch_inputs[param].append(data.sample.temperature) 1125 1126 # associate residuals plot 1127 1126 1128 batch_outputs["Chi2"][index].object = [residuals] 1127 1129 … … 1767 1769 flag = False 1768 1770 batch_inputs, batch_outputs = self.page_finder[page_id].get_result() 1769 1771 1770 1772 if self.page_finder[page_id].nbr_residuals_computed == -1: 1771 1773 flag = False 1772 1774 else: 1773 if m == n - 1775 if m == n -1: 1774 1776 flag = True 1775 1777 else: 1776 1778 flag = False 1777 1779 self.page_finder[page_id].nbr_residuals_computed += 1 1778 1780 1779 1781 self.on_set_batch_result(page_id=page_id,
Note: See TracChangeset
for help on using the changeset viewer.