Author: bugman Date: Tue Jan 11 11:03:10 2011 New Revision: 12194 URL: http://svn.gna.org/viewcvs/relax?rev=12194&view=rev Log: The free_file_format data structures are only being recreated if it exists in the XML file. This allows older relax GUI results files to be read by the newer code. Modified: branches/bieri_gui/data/gui.py Modified: branches/bieri_gui/data/gui.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/data/gui.py?rev=12194&r1=12193&r2=12194&view=diff ============================================================================== --- branches/bieri_gui/data/gui.py (original) +++ branches/bieri_gui/data/gui.py Tue Jan 11 11:03:10 2011 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2010 Edward d'Auvergne # +# Copyright (C) 2010-2011 Edward d'Auvergne # # # # This file is part of the program relax. # # # @@ -65,7 +65,8 @@ # Get the file settings node and recreate the structure. format_nodes = gui_node.getElementsByTagName('free_file_format') - self.free_file_format.from_xml(format_nodes[0]) + if format_nodes: + self.free_file_format.from_xml(format_nodes[0]) # Recreate all the other data structures. xml_to_object(gui_node, self, blacklist=['analyses', 'free_file_format'])