Ignore:
Timestamp:
May 8, 2014 12:55:23 PM (11 years ago)
Author:
Jeff Krzywon <jeffery.krzywon@…>
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
Message:

Save and load project files seems fixed now. I haven't tested individual analysis windows yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/perspectives/invariant/invariant_state.py

    r51f14603 r92a2ecd  
    254254        : param entry_node: XML node within the XML document at which we will append the data [optional] 
    255255        """ 
     256        # TODO: Get this to work 
    256257        from xml.dom.minidom import getDOMImplementation 
    257258        import time 
     
    273274            else: 
    274275                entry_node.appendChild(top_element) 
    275              
     276                 
    276277        attr = newdoc.createAttribute("version") 
    277278        attr.nodeValue = '1.0' 
     
    352353            return None 
    353354        else: 
    354             return newdoc.toprettyxml() 
     355            return newdoc 
    355356         
    356357    def fromXML(self, file=None, node=None): 
     
    742743                for entry in entry_list: 
    743744                     
    744                     sas_entry = self._parse_entry(entry) 
     745                    sas_entry, _ = self._parse_entry(entry) 
    745746                    invstate = self._parse_state(entry) 
    746747                     
     
    809810        # Add the invariant information to the XML document 
    810811        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) 
    812813        return doc 
    813814 
Note: See TracChangeset for help on using the changeset viewer.