Author: bugman Date: Tue Apr 8 11:28:51 2008 New Revision: 5415 URL: http://svn.gna.org/viewcvs/relax?rev=5415&view=rev Log: Bug fix for the internal relax PDB data object. The object structural_data inside the data object was a class variable, and hence each instantiation of Internal_PDB was not resetting the object. If the object was used twice, then the data from the first would remain. Modified: 1.3/generic_fns/structure/internal_pdb.py Modified: 1.3/generic_fns/structure/internal_pdb.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/internal_pdb.py?rev=5415&r1=5414&r2=5415&view=diff ============================================================================== --- 1.3/generic_fns/structure/internal_pdb.py (original) +++ 1.3/generic_fns/structure/internal_pdb.py Tue Apr 8 11:28:51 2008 @@ -53,8 +53,12 @@ # Identification string. id = 'internal pdb' - # Change the data object to an empty dictionary. - structural_data = {} + + def __init__(self): + """Initialise the PDB object.""" + + # Reinitialise the data object to an empty dictionary. + self.structural_data = {} def __get_chemical_name(self, hetID):