Author: bugman Date: Wed Jan 2 15:25:43 2008 New Revision: 4251 URL: http://svn.gna.org/viewcvs/relax?rev=4251&view=rev Log: Bug fix for the generic_fns.diffusion_tensor.set() function. If no diffusion tensor exists, then a RelaxError is thrown when trying to set the parameters. It's not possible to create a tensor from scratch as the tensor type is unknown. Modified: 1.3/generic_fns/diffusion_tensor.py Modified: 1.3/generic_fns/diffusion_tensor.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/diffusion_tensor.py?rev=4251&r1=4250&r2=4251&view=diff ============================================================================== --- 1.3/generic_fns/diffusion_tensor.py (original) +++ 1.3/generic_fns/diffusion_tensor.py Wed Jan 2 15:25:43 2008 @@ -910,6 +910,10 @@ # Alias the current data pipe. cdp = relax_data_store[relax_data_store.current_pipe] + # Set up the diffusion tensor data if it doesn't exist. + if not diff_data_exists(): + raise RelaxNoTensorError, 'diffusion' + # Initialise. geo_params = [] geo_values = []