mailr10014 - /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 November 29, 2009 - 15:23:
Author: bugman
Date: Sun Nov 29 15:23:13 2009
New Revision: 10014

URL: http://svn.gna.org/viewcvs/relax?rev=10014&view=rev
Log:
Fix for the generic_fns.value.set() method.

The return_data_name() specific API method should have been used to send the 
correct string into
default_value().


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=10014&r1=10013&r2=10014&view=diff
==============================================================================
--- 1.3/generic_fns/value.py (original)
+++ 1.3/generic_fns/value.py Sun Nov 29 15:23:13 2009
@@ -321,6 +321,7 @@
     # Specific functions.
     default_value = specific_fns.setup.get_specific_fn('default_value', 
pipes.get_type())
     get_param_names = specific_fns.setup.get_specific_fn('get_param_names', 
pipes.get_type())
+    return_data_name = 
specific_fns.setup.get_specific_fn('return_data_name', pipes.get_type())
     set_param_values = 
specific_fns.setup.get_specific_fn('set_param_values', pipes.get_type())
 
     # Convert numpy arrays to lists, if necessary.
@@ -350,7 +351,7 @@
         # Loop over the parameters, getting the default values.
         val = []
         for i in range(len(param)):
-            val.append(default_value(param[i]))
+            val.append(default_value(return_data_name(param[i])))
 
     # Set the parameter values.
     for i in range(len(param)):




Related Messages


Powered by MHonArc, Updated Mon Nov 30 10:20:05 2009