mailr14868 - /1.3/generic_fns/paramag.py


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

Header


Content

Posted by edward on October 13, 2011 - 18:31:
Author: bugman
Date: Thu Oct 13 18:31:08 2011
New Revision: 14868

URL: http://svn.gna.org/viewcvs/relax?rev=14868&view=rev
Log:
Fix for the paramag.centre user function when a numpy array is used.


Modified:
    1.3/generic_fns/paramag.py

Modified: 1.3/generic_fns/paramag.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/paramag.py?rev=14868&r1=14867&r2=14868&view=diff
==============================================================================
--- 1.3/generic_fns/paramag.py (original)
+++ 1.3/generic_fns/paramag.py Thu Oct 13 18:31:08 2011
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2003-2010 Edward d'Auvergne                                  
 #
+# Copyright (C) 2003-2011 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -71,7 +71,7 @@
         raise RelaxNoPdbError
 
     # Test the centre has already been set.
-    if pos and not force and hasattr(cdp, 'paramagnetic_centre'):
+    if pos != None and not force and hasattr(cdp, 'paramagnetic_centre'):
         raise RelaxError("The paramagnetic centre has already been set to 
the coordinates " + repr(cdp.paramagnetic_centre) + ".")
 
     # The fixed flag.




Related Messages


Powered by MHonArc, Updated Fri Oct 14 10:40:02 2011