Author: bugman Date: Fri May 3 19:21:00 2013 New Revision: 19648 URL: http://svn.gna.org/viewcvs/relax?rev=19648&view=rev Log: Big bug fix for the value.copy user function - it is now functional again. Modified: trunk/pipe_control/value.py Modified: trunk/pipe_control/value.py URL: http://svn.gna.org/viewcvs/relax/trunk/pipe_control/value.py?rev=19648&r1=19647&r2=19648&view=diff ============================================================================== --- trunk/pipe_control/value.py (original) +++ trunk/pipe_control/value.py Fri May 3 19:21:00 2013 @@ -69,7 +69,7 @@ return_value = specific_analyses.setup.get_specific_fn('return_value', pipes.get_type(pipe_from)) # Test if the data exists for pipe_to. - for spin in spin_loop(pipe_to): + for spin in spin_loop(pipe=pipe_to): # Get the value and error for pipe_to. value, error = return_value(spin, param) @@ -78,15 +78,12 @@ raise RelaxValueError(param, pipe_to) # Copy the values. - for spin, spin_id in spin_loop(pipe_from, return_id=True): + for spin, spin_id in spin_loop(pipe=pipe_from, return_id=True): # Get the value and error from pipe_from. value, error = return_value(spin, param) - # Get the equivalent spin in pipe_to. - spin_to = return_spin(spin_id, pipe_to) - # Set the values of pipe_to. - set(spin_id=spin_to, value=value, error=error, param=param) + set(spin_id=spin_id, val=value, error=error, param=param) # Reset all minimisation statistics. minimise.reset_min_stats(pipe_to)