mailr4859 - /1.3/generic_fns/value.py


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

Header


Content

Posted by edward on January 21, 2008 - 11:15:
Author: bugman
Date: Mon Jan 21 11:15:41 2008
New Revision: 4859

URL: http://svn.gna.org/viewcvs/relax?rev=4859&view=rev
Log:
When None, the param variable is converted to a list of None with the length 
equal to that of val.

This affects the generic_fns.value.set() function when no parameters are 
supplied.


Modified:
    1.3/generic_fns/value.py

Modified: 1.3/generic_fns/value.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/value.py?rev=4859&r1=4858&r2=4859&view=diff
==============================================================================
--- 1.3/generic_fns/value.py (original)
+++ 1.3/generic_fns/value.py Mon Jan 21 11:15:41 2008
@@ -198,6 +198,9 @@
                 for j in xrange(len(val)):
                     set_spin_params(value=val[j], error=None, spin=spin, 
param=None)
 
+        # Set param to a list of None the length of val.
+        param = [None] * len(val)
+
         # Set the non-spin specific parameters.
         set_non_spin_params(value=val, param=param)
 




Related Messages


Powered by MHonArc, Updated Mon Jan 21 11:20:09 2008