mailr7316 - /1.3/generic_fns/structure/internal.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 25, 2008 - 20:47:
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:




Related Messages


Powered by MHonArc, Updated Thu Sep 25 21:00:05 2008