Changeset 92a2ecd in sasview for src/sans/perspectives/pr/inversion_state.py
- Timestamp:
- May 8, 2014 12:55:23 PM (11 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:
- 6b20c4e
- Parents:
- 17c62b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/perspectives/pr/inversion_state.py
r5777106 r92a2ecd 148 148 149 149 """ 150 #TODO: Get this to work 150 151 from xml.dom.minidom import getDOMImplementation 151 152 … … 221 222 return None 222 223 else: 223 return newdoc .toprettyxml()224 return newdoc 224 225 225 226 def fromXML(self, file=None, node=None): … … 470 471 471 472 for entry in entry_list: 472 sas_entry = self._parse_entry(entry)473 sas_entry, _ = self._parse_entry(entry) 473 474 prstate = self._parse_prstate(entry) 474 475 #prstate could be None when .svs file is loaded … … 504 505 # Sanity check 505 506 if self.cansas == True: 506 doc = self.write_toXML(datainfo, prstate)507 doc = self.write_toXML(datainfo, prstate) 507 508 # Write the XML document 508 509 fd = open(filename, 'w') … … 527 528 # Create basic XML document 528 529 doc, sasentry = self._to_xml_doc(datainfo) 529 530 530 531 # Add the invariant information to the XML document 531 532 if state is not None: 532 state.toXML(doc=doc, entry_node=sasentry)533 doc = state.toXML(doc=doc, entry_node=sasentry) 533 534 534 535 return doc
Note: See TracChangeset
for help on using the changeset viewer.