Author: bugman Date: Thu Sep 25 20:47:56 2008 New Revision: 7316 URL: http://svn.gna.org/viewcvs/relax?rev=7316&view=rev Log: Added a warning if the atom cannot be found in the structure. 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=7316&r1=7315&r2=7316&view=diff ============================================================================== --- 1.3/generic_fns/structure/internal.py (original) +++ 1.3/generic_fns/structure/internal.py Thu Sep 25 20:47:56 2008 @@ -754,6 +754,10 @@ # Append the vector to the vectors array. vectors.append(vector) + # Not found. + else: + warnings = "Cannot find the atom in the structure" + # Build the tuple to be yielded. data = (vectors,) if return_name: