Author: bugman Date: Thu Aug 14 16:57:58 2008 New Revision: 7198 URL: http://svn.gna.org/viewcvs/relax?rev=7198&view=rev Log: Added a missing import and fixed an incorrect reference to the data pipe container. Modified: branches/rdc_analysis/generic_fns/pcs.py Modified: branches/rdc_analysis/generic_fns/pcs.py URL: http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/pcs.py?rev=7198&r1=7197&r2=7198&view=diff ============================================================================== --- branches/rdc_analysis/generic_fns/pcs.py (original) +++ branches/rdc_analysis/generic_fns/pcs.py Thu Aug 14 16:57:58 2008 @@ -25,6 +25,7 @@ # Python module imports. from copy import deepcopy +from numpy import float64, zeros import sys # relax module imports. @@ -239,7 +240,7 @@ # Get the positions. pos = zeros(3, float64) i = 0 - for R in cdp.structure.atom_loop(atom_id=atom_id, pos_flag=True): + for R in dp.structure.atom_loop(atom_id=atom_id, pos_flag=True): pos = pos + R i = i + 1