Author: bugman Date: Sun Jun 22 14:57:56 2008 New Revision: 6392 URL: http://svn.gna.org/viewcvs/relax?rev=6392&view=rev Log: Deleted the orphaned Residue and ResidueList classes. Modified: 1.3/data/data_classes.py Modified: 1.3/data/data_classes.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/data_classes.py?rev=6392&r1=6391&r2=6392&view=diff ============================================================================== --- 1.3/data/data_classes.py (original) +++ 1.3/data/data_classes.py Sun Jun 22 14:57:56 2008 @@ -22,8 +22,6 @@ # Python module imports. from re import search -from types import DictType, ListType - # Empty data container. @@ -75,52 +73,3 @@ # The Element container is empty. return True - - - -# Residue specific data. -######################## - -class Residue(DictType): - """Class containing all the residue specific data.""" - - - def __repr__(self): - text = "Class containing all the residue specific data.\n\n" - - # Empty. - if not len(self): - text = text + "The class contains no data.\n" - - # Not empty. - else: - text = text + "The residue container contains the following keys:\n" - for key in self: - text = text + " " + `key` + "\n" - text = text + "\nThese can be accessed by typing 'ds.res[key]'.\n" - - return text - - - def add_list(self, key): - """Function for adding an empty container to the dictionary.""" - - self[key] = ResidueList() - - -class ResidueList(ListType): - """Empty data container for residue specific data.""" - - def __repr__(self): - text = "Sequence data.\n\n" - text = text + "%-8s%-8s%-8s%-10s" % ("Index", "Number", "Name", "Selected") + "\n" - for i in xrange(len(self)): - text = text + "%-8i%-8i%-8s%-10i" % (i, self[i].num, self[i].name, self[i].select) + "\n" - text = text + "\nThese can be accessed by typing 'ds.res[key][index]'.\n" - return text - - - def add_item(self): - """Function for appending an empty container to the list.""" - - self.append(Element())