Changeset 9ba91b7 in sasview for src/sas/qtgui/Perspectives/Fitting/ModelThread.py
- Timestamp:
- Sep 7, 2018 10:11:37 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 254199c
- Parents:
- d6c4987 (diff), fb560d2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Ingo Breßler <dev@…> (09/07/18 10:09:21)
- git-committer:
- Ingo Breßler <dev@…> (09/07/18 10:11:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/ModelThread.py
r40975f8 r9ba91b7 101 101 elapsed = time.time() - self.starttime 102 102 103 res = dict(image = output, data = self.data, page_id = self.page_id, 104 model = self.model, state = self.state, 105 toggle_mode_on = self.toggle_mode_on, elapsed = elapsed, 106 index = index_model, fid = self.fid, 107 qmin = self.qmin, qmax = self.qmax, 108 weight = self.weight, update_chisqr = self.update_chisqr, 109 source = self.source) 110 103 111 if LocalConfig.USING_TWISTED: 104 return (output, 105 self.data, 106 self.page_id, 107 self.model, 108 self.state, 109 self.toggle_mode_on, 110 elapsed, 111 index_model, 112 self.fid, 113 self.qmin, 114 self.qmax, 115 self.weight, 116 self.update_chisqr, 117 self.source) 118 else: 119 self.completefn((output, 120 self.data, 121 self.page_id, 122 self.model, 123 self.state, 124 self.toggle_mode_on, 125 elapsed, 126 index_model, 127 self.fid, 128 self.qmin, 129 self.qmax, 130 self.weight, 131 #qstep=self.qstep, 132 self.update_chisqr, 133 self.source)) 134 112 return res 113 else: 114 self.completefn(res) 135 115 136 116 class Calc1D(CalcThread): … … 249 229 elapsed = time.time() - self.starttime 250 230 231 res = dict(x = self.data.x[index], y = output[index], 232 page_id = self.page_id, state = self.state, weight = self.weight, 233 fid = self.fid, toggle_mode_on = self.toggle_mode_on, 234 elapsed = elapsed, index = index, model = self.model, 235 data = self.data, update_chisqr = self.update_chisqr, 236 source = self.source, unsmeared_output = unsmeared_output, 237 unsmeared_data = unsmeared_data, unsmeared_error = unsmeared_error, 238 intermediate_results = results_eval) 239 251 240 if LocalConfig.USING_TWISTED: 252 return (self.data.x[index], output[index], 253 self.page_id, 254 self.state, 255 self.weight, 256 self.fid, 257 self.toggle_mode_on, 258 elapsed, index, self.model, 259 self.data, 260 self.update_chisqr, 261 self.source, 262 unsmeared_output, unsmeared_data, unsmeared_error, 263 results_eval) 264 else: 265 self.completefn((self.data.x[index], output[index], 266 self.page_id, 267 self.state, 268 self.weight, 269 self.fid, 270 self.toggle_mode_on, 271 elapsed, index, self.model, 272 self.data, 273 self.update_chisqr, 274 self.source, 275 unsmeared_output, unsmeared_data, unsmeared_error, 276 results_eval)) 241 return res 242 else: 243 self.completefn(res) 277 244 278 245 def results(self):
Note: See TracChangeset
for help on using the changeset viewer.