Author: bugman Date: Thu Jan 22 16:25:18 2009 New Revision: 8602 URL: http://svn.gna.org/viewcvs/relax?rev=8602&view=rev Log: Deletion of the unused, commented out code in from_xml(). Modified: branches/multi_structure/generic_fns/structure/api_base.py Modified: branches/multi_structure/generic_fns/structure/api_base.py URL: http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/api_base.py?rev=8602&r1=8601&r2=8602&view=diff ============================================================================== --- branches/multi_structure/generic_fns/structure/api_base.py (original) +++ branches/multi_structure/generic_fns/structure/api_base.py Thu Jan 22 16:25:18 2009 @@ -187,41 +187,6 @@ model_nodes = str_node.getElementsByTagName('model') self.structural_data.from_xml(model_nodes) - # Recreate all the data structures. - #xml_to_object(str_node, self) - - # Loop over the structures and load them. - #for i in xrange(self.num): - # # Load the structure from file and path. - # if self.path[i]: - # try: - # loaded = self.load_pdb(file_path=self.path[i] + sep + self.file[i], model=None) - # except RelaxError: - # loaded = False - # else: - # loaded = False - - # # Try without the path to search for the file in the current directory. - # if not loaded: - # try: - # loaded = self.load_pdb(file_path=self.file[i], model=None) - # except RelaxError: - # loaded = False - - # # Try in the path of the results file. - # if not loaded: - # try: - # loaded = self.load_pdb(file_path=dir + sep + self.file[i], model=None) - # except RelaxError: - # loaded = False - - # # Can't load the file. - # if not loaded: - # if self.path[i]: - # warn(RelaxWarning("The structure file " + `self.file[i]` + " cannot be found in the current directory, the directory of the results file or in the directory" + `self.path[i]` + ".")) - # else: - # warn(RelaxWarning("The structure file " + `self.file[i]` + " cannot be found in the current directory or the directory of the results file.")) - def get_model(self, model): """Return or create the model.