Author: bugman Date: Mon Feb 18 18:54:17 2013 New Revision: 18489 URL: http://svn.gna.org/viewcvs/relax?rev=18489&view=rev Log: Fix for the structure.add_atom user function for the internal structural object. The atomic positions for each model are now correctly set. Modified: trunk/generic_fns/structure/internal.py Modified: trunk/generic_fns/structure/internal.py URL: http://svn.gna.org/viewcvs/relax/trunk/generic_fns/structure/internal.py?rev=18489&r1=18488&r2=18489&view=diff ============================================================================== --- trunk/generic_fns/structure/internal.py (original) +++ trunk/generic_fns/structure/internal.py Mon Feb 18 18:54:17 2013 @@ -631,7 +631,7 @@ model_pos = pos[i] # Add the atom. - mol.atom_add(atom_name=atom_name, res_name=res_name, res_num=res_num, pos=pos, element=element, atom_num=atom_num, chain_id=chain_id, segment_id=segment_id, pdb_record=pdb_record) + mol.atom_add(atom_name=atom_name, res_name=res_name, res_num=res_num, pos=model_pos, element=element, atom_num=atom_num, chain_id=chain_id, segment_id=segment_id, pdb_record=pdb_record) def add_model(self, model=None, coords_from=None):