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/pr/inversion_state.py

    r5777106 r92a2ecd  
    148148         
    149149        """ 
     150        #TODO: Get this to work 
    150151        from xml.dom.minidom import getDOMImplementation 
    151152 
     
    221222            return None 
    222223        else: 
    223             return newdoc.toprettyxml() 
     224            return newdoc 
    224225 
    225226    def fromXML(self, file=None, node=None): 
     
    470471 
    471472                for entry in entry_list: 
    472                     sas_entry = self._parse_entry(entry) 
     473                    sas_entry, _ = self._parse_entry(entry) 
    473474                    prstate = self._parse_prstate(entry) 
    474475                    #prstate could be None when .svs file is loaded 
     
    504505        # Sanity check 
    505506        if self.cansas == True: 
    506             doc =self.write_toXML(datainfo, prstate)         
     507            doc = self.write_toXML(datainfo, prstate)         
    507508            # Write the XML document 
    508509            fd = open(filename, 'w') 
     
    527528        # Create basic XML document 
    528529        doc, sasentry = self._to_xml_doc(datainfo) 
    529      
     530         
    530531        # Add the invariant information to the XML document 
    531532        if state is not None: 
    532             state.toXML(doc=doc, entry_node=sasentry) 
     533            doc = state.toXML(doc=doc, entry_node=sasentry) 
    533534             
    534535        return doc  
Note: See TracChangeset for help on using the changeset viewer.