Author: bugman
Date: Sun Nov 25 20:02:01 2007
New Revision: 3951

URL: http://svn.gna.org/viewcvs/relax?rev=3951&view=rev
Log:
Bug fix for generic_fns.diffusion_tensor.test_params().

Removed self and added the cdp alias.


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=3951&r1=3950&r2=3951&view=diff
==============================================================================
--- 1.3/generic_fns/diffusion_tensor.py (original)
+++ 1.3/generic_fns/diffusion_tensor.py Sun Nov 25 20:02:01 2007
@@ -1385,8 +1385,11 @@
     self.set(run=self.run, value=[theta, phi], param=['theta', 'phi'])
 
 
-def test_params(self, num_params):
+def test_params(num_params):
     """Function for testing the validity of the input parameters."""
+
+    # Alias the current data pipe.
+    cdp = relax_data_store[relax_data_store.current_pipe]
 
     # An allowable error to account for machine precision, optimisation 
quality, etc.
     error = 1e-4


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to