Changeset 92a2ecd in sasview for src/sans/perspectives/invariant/invariant_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/invariant/invariant_state.py
r51f14603 r92a2ecd 254 254 : param entry_node: XML node within the XML document at which we will append the data [optional] 255 255 """ 256 # TODO: Get this to work 256 257 from xml.dom.minidom import getDOMImplementation 257 258 import time … … 273 274 else: 274 275 entry_node.appendChild(top_element) 275 276 276 277 attr = newdoc.createAttribute("version") 277 278 attr.nodeValue = '1.0' … … 352 353 return None 353 354 else: 354 return newdoc .toprettyxml()355 return newdoc 355 356 356 357 def fromXML(self, file=None, node=None): … … 742 743 for entry in entry_list: 743 744 744 sas_entry = self._parse_entry(entry)745 sas_entry, _ = self._parse_entry(entry) 745 746 invstate = self._parse_state(entry) 746 747 … … 809 810 # Add the invariant information to the XML document 810 811 if state is not None: 811 state.toXML(datainfo.name,doc=doc, entry_node=sasentry)812 doc = state.toXML(datainfo.name,doc=doc, entry_node=sasentry) 812 813 return doc 813 814
Note: See TracChangeset
for help on using the changeset viewer.