Changeset caeb382 in sasview for src/sas/sasgui
- Timestamp:
- Aug 22, 2016 9:14:25 AM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 20ced5c
- Parents:
- ff11b21
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/corfunc/corfunc_state.py
re73e723 rcaeb382 70 70 state += "Qmax: {}\n".format(str(self.qmax)) 71 71 state += "Background: {}\n".format(str(self.background)) 72 if self.outputs is None: 73 return state 74 state += "\nOutputs:\n" 75 for output in output_list: 76 key = output[0] 77 name = output[1] 78 state += "{}: {}\n".format(name, str(self.outputs[key])) 72 73 if self.outputs != {} and self.outputs is not None: 74 state += "\nOutputs:\n" 75 for key, value in self.outputs.iteritems(): 76 name = output_list[key][1] 77 state += "{}: {}\n".format(name, str(value)) 79 78 80 79 return state … … 176 175 output = new_doc.createElement("output") 177 176 top_element.appendChild(output) 178 for item in output_list: 179 element = new_doc.createElement(item[0]) 180 value = self.outputs[item[0]] 177 for key, value in self.outputs.iteritems(): 178 element = new_doc.createElement(key) 181 179 element.appendChild(new_doc.createTextNode(str(value))) 182 180 output.appendChild(element)
Note: See TracChangeset
for help on using the changeset viewer.