mailr20797 - /branches/relax_disp/test_suite/system_tests/relax_disp.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 04, 2013 - 13:55:
Author: bugman
Date: Wed Sep  4 13:55:18 2013
New Revision: 20797

URL: http://svn.gna.org/viewcvs/relax?rev=20797&view=rev
Log:
Added setup function for the system test of KTeilum_FMPoulsen_MAkke_2006 data.

Progress sr #3071: https://gna.org/support/index.php?3071 - Implementation of 
Tollinger/Kay dispersion model (2001)
Following the guide at: 
http://wiki.nmr-relax.com/Tutorial_for_adding_relaxation_dispersion_models_to_relax

Troels E. Linnet provided this patch. Commit by: tlinnet _aaattt_ 
gmail_dot_com

Signed-off-by: Edward d'Auvergne <edward@xxxxxxxxxxxxx>

Modified:
    branches/relax_disp/test_suite/system_tests/relax_disp.py

Modified: branches/relax_disp/test_suite/system_tests/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/test_suite/system_tests/relax_disp.py?rev=20797&r1=20796&r2=20797&view=diff
==============================================================================
--- branches/relax_disp/test_suite/system_tests/relax_disp.py (original)
+++ branches/relax_disp/test_suite/system_tests/relax_disp.py Wed Sep  4 
13:55:18 2013
@@ -72,6 +72,34 @@
 
         # Set the nuclear isotope data.
         self.interpreter.spin.isotope('15N')
+
+        # Create the R2eff data pipe and load the results.
+        self.interpreter.pipe.create(pipe_name='R2eff', 
pipe_type='relax_disp')
+        self.interpreter.pipe.switch(pipe_name='R2eff')
+        self.interpreter.results.read(data_path+sep+'r2eff_pipe')
+
+        # The model data pipe.
+        self.interpreter.pipe.copy(pipe_from='base pipe', pipe_to=model, 
bundle_to='relax_disp')
+        self.interpreter.pipe.switch(pipe_name=model)
+
+        # Set the model.
+        self.interpreter.relax_disp.select_model(model=model)
+
+        # Copy the data.
+        self.interpreter.value.copy(pipe_from='R2eff', pipe_to=model, 
param='r2eff')
+
+
+    def setup_kteilum_fmpoulsen_makke_cpmg_data(self, model=None):
+        """Set up the data for the 
test_kteilum_fmpoulsen_makke_cpmg_data_*() system tests.
+
+        @keyword model: The name of the model which will be tested.
+        @type model:    str
+        """
+
+        # Create the data pipe and load the base data.
+        data_path = status.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'dispersion'+sep+'KTeilum_FMPoulsen_MAkke_2006'
+        self.interpreter.pipe.create(pipe_name='base pipe', 
pipe_type='relax_disp')
+        self.interpreter.results.read(data_path+sep+'ini_setup')
 
         # Create the R2eff data pipe and load the results.
         self.interpreter.pipe.create(pipe_name='R2eff', 
pipe_type='relax_disp')




Related Messages


Powered by MHonArc, Updated Wed Sep 04 14:00:01 2013