Author: bugman Date: Thu Mar 8 06:05:14 2007 New Revision: 3108 URL: http://svn.gna.org/viewcvs/relax?rev=3108&view=rev Log: Modified the __reset__ method of the relax data storage object to remove all the dictionary items. Modified: 1.3/data/__init__.py Modified: 1.3/data/__init__.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/__init__.py?rev=3108&r1=3107&r2=3108&view=diff ============================================================================== --- 1.3/data/__init__.py (original) +++ 1.3/data/__init__.py Thu Mar 8 06:05:14 2007 @@ -108,13 +108,10 @@ created instance of Data, hence resetting the relax program state. """ - # Get the keys of self.__dict__. - keys = self.__dict__.keys() - - # Loop over the keys and delete the corresponding object. - for key in keys: + # Loop over the keys of self.__dict__ and delete the corresponding object. + for key in self.__dict__.keys(): # Delete the object. del self.__dict__[key] - # Rerun the __init__() method. - self.__init__() + # Remove all items from the dictionary. + self.clear()