Author: bugman Date: Fri Jan 25 14:13:57 2008 New Revision: 4886 URL: http://svn.gna.org/viewcvs/relax?rev=4886&view=rev Log: Bug fix for the generic_fns.value.set() function. The differentiation between a spin specific parameter and a global parameter was not working for specific analyses with no spin specific parameters. The return_data_name() function was being used to differentiate, which makes no sense. So instead the is_spin_param() function has been introduced to allow the specific code to answer the question explicitly. Note that this will temporarily break many things. 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=4886&r1=4885&r2=4886&view=diff ============================================================================== --- 1.3/generic_fns/value.py (original) +++ 1.3/generic_fns/value.py Fri Jan 25 14:13:57 2008 @@ -50,7 +50,7 @@ """ # Specific functions. - return_data_name = get_specific_fn('return_data_name', relax_data_store[relax_data_store.current_pipe].pipe_type) + is_spin_param = get_specific_fn('is_spin_param', relax_data_store[relax_data_store.current_pipe].pipe_type) # Initialise. spin_params = [] @@ -61,7 +61,7 @@ # Single parameter. if type(param) == str: # Spin specific parameter. - if return_data_name(param): + if is_spin_param(param): params = spin_params values = spin_values @@ -92,7 +92,7 @@ # Loop over all parameters. for i in xrange(len(param)): # Spin specific parameter. - if return_data_name(param[i]): + if is_spin_param(param[i]): params = spin_params values = spin_values