mailr17125 - /branches/interatomic/generic_fns/interatomic.py


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

Header


Content

Posted by edward on July 02, 2012 - 15:02:
Author: bugman
Date: Mon Jul  2 15:02:34 2012
New Revision: 17125

URL: http://svn.gna.org/viewcvs/relax?rev=17125&view=rev
Log:
Bug fix for the generic_fns.interatomic.copy() function for when no 
interatomic data exists.

This now returns without doing anything rather than raising a RelaxError.


Modified:
    branches/interatomic/generic_fns/interatomic.py

Modified: branches/interatomic/generic_fns/interatomic.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/interatomic/generic_fns/interatomic.py?rev=17125&r1=17124&r2=17125&view=diff
==============================================================================
--- branches/interatomic/generic_fns/interatomic.py (original)
+++ branches/interatomic/generic_fns/interatomic.py Mon Jul  2 15:02:34 2012
@@ -59,9 +59,9 @@
     pipes.test(pipe_from)
     pipes.test(pipe_to)
 
-    # Test if pipe_from contains interatomic data.
+    # Test if pipe_from contains interatomic data (skipping the rest of the 
function if it is missing).
     if not exists_data(pipe_from):
-        raise RelaxNoInteratomError
+        return
 
     # Test if pipe_to contains interatomic data.
     if exists_data(pipe_to):




Related Messages


Powered by MHonArc, Updated Mon Jul 02 15:40:01 2012