Changeset e68bfef in sasview for fittingview/src
- Timestamp:
- Oct 6, 2011 1:09:45 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:
- e03a14e
- Parents:
- 5722d66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitting.py
r90ddcdb re68bfef 34 34 from sans.guiframe.gui_style import GUIFRAME_ID 35 35 from sans.guiframe.plugin_base import PluginBase 36 from sans.guiframe.data_processor import BatchCell 36 37 from sans.fit.Fitting import Fit 37 38 from .console import ConsoleUpdate … … 1064 1065 if res is None: 1065 1066 null_value = numpy.nan 1066 from sans.guiframe.data_processor import BatchCell1067 1067 cell = BatchCell() 1068 1068 cell.label = null_value … … 1070 1070 cell.object = [None] 1071 1071 batch_outputs["Chi2"].append(cell) 1072 for index in range(len(pars)): 1073 batch_outputs[pars[index]].append(null_value) 1074 item = null_value 1075 batch_inputs["error on %s" % pars[index]].append(item) 1076 if pars[index] in model.getParamList(): 1077 temp_model.setParam(pars[index], res.pvec[index]) 1072 for param in temp_model.getParamList(): 1073 if temp_model.is_fittable(param): 1074 for index in range(len(pars)): 1075 #replug only fitted values 1076 if param != pars[index]: 1077 batch_outputs[pars[index]].append(null_value) 1078 item = null_value 1079 batch_inputs["error on %s" % pars[index]].append(item) 1080 if pars[index] in model.getParamList(): 1081 temp_model.setParam(pars[index], res.pvec[index]) 1082 else: 1083 batch_outputs[str(param)].append(temp_model.getParam(param)) 1078 1084 else: 1079 1085 from sans.guiframe.data_processor import BatchCell … … 1082 1088 cell.value = res.fitness 1083 1089 batch_outputs["Chi2"].append(cell) 1084 for index in range(len(pars)): 1085 batch_outputs[pars[index]].append(res.pvec[index]) 1086 item = res.stderr[index] 1087 batch_inputs["error on %s" % pars[index]].append(item) 1088 if pars[index] in temp_model.getParamList(): 1089 temp_model.setParam(pars[index], res.pvec[index]) 1090 1090 for param in temp_model.getParamList(): 1091 if temp_model.is_fittable(param): 1092 for index in range(len(pars)): 1093 #replug only fitted values 1094 if param != pars[index]: 1095 batch_outputs[pars[index]].append(res.pvec[index]) 1096 item = res.stderr[index] 1097 batch_inputs["error on %s" % pars[index]].append(item) 1098 if pars[index] in temp_model.getParamList(): 1099 temp_model.setParam(pars[index], res.pvec[index]) 1100 else: 1101 batch_outputs[str(param)].append(temp_model.getParam(param)) 1102 1091 1103 self.page_finder[pid].set_batch_result(batch_inputs=batch_inputs, 1092 1104 batch_outputs=batch_outputs) … … 1143 1155 if key not in batch_inputs.keys(): 1144 1156 batch_inputs[key] = [] 1145 batch_inputs[key].append(value) 1157 if key.lower().strip() != "loader": 1158 batch_inputs[key].append(value) 1146 1159 param = "temperature" 1147 1160 if hasattr(data.sample, param):
Note: See TracChangeset
for help on using the changeset viewer.