Author: bugman Date: Fri Dec 12 11:31:06 2008 New Revision: 8210 URL: http://svn.gna.org/viewcvs/relax?rev=8210&view=rev Log: Another bug fix for the load_pdb() internal structure object method. This was found by the lactose N-state model system test. The __fill_object_from_pdb() method was not being called properly and when loading multiple PDB files containing model information, the first would contain the atomic information of all files! Modified: 1.3/generic_fns/structure/internal.py Modified: 1.3/generic_fns/structure/internal.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/internal.py?rev=8210&r1=8209&r2=8210&view=diff ============================================================================== --- 1.3/generic_fns/structure/internal.py (original) +++ 1.3/generic_fns/structure/internal.py Fri Dec 12 11:31:06 2008 @@ -918,7 +918,7 @@ self.add_struct(name=name, model=model_num, file=file, path=path, str=Structure_container(), struct_index=struct_index) # Fill the structural data object. - self.__fill_object_from_pdb(records, struct_index=i) + self.__fill_object_from_pdb(records, struct_index=len(self.structural_data)-1) # Increment the structure index. i = i + 1