mailRe: r4209 - in /branches/consistency_tests_1.3: prompt/__init__.py specific_fns/__init__.py test_suite/system_tests/__init__.py


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

Header


Content

Posted by Edward d'Auvergne on December 20, 2007 - 11:44:
Hi,

Those changes are exactly what is needed.  You can probably now see
the simplicity of setting up the specific functions now in
specific_fns/__init__.py.  I may still modify this design if something
better or more flexible comes up.

Regards,

Edward


On Dec 18, 2007 9:07 PM,  <sebastien.morin.1@xxxxxxxxx> wrote:
Author: semor
Date: Tue Dec 18 21:07:21 2007
New Revision: 4209

URL: http://svn.gna.org/viewcvs/relax?rev=4209&view=rev
Log:
Added statements for consistency_tests (imports and class) in __init__.py 
files.

These changes were inspired by the jw_mapping code.


Modified:
    branches/consistency_tests_1.3/prompt/__init__.py
    branches/consistency_tests_1.3/specific_fns/__init__.py
    branches/consistency_tests_1.3/test_suite/system_tests/__init__.py

Modified: branches/consistency_tests_1.3/prompt/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/consistency_tests_1.3/prompt/__init__.py?rev=4209&r1=4208&r2=4209&view=diff
==============================================================================
--- branches/consistency_tests_1.3/prompt/__init__.py (original)
+++ branches/consistency_tests_1.3/prompt/__init__.py Tue Dec 18 21:07:21 
2007
@@ -23,6 +23,7 @@

 __all__ = ['angles',
            'command',
+           'consistency_tests',
            'dasha',
            'diffusion_tensor',
            'dx',

Modified: branches/consistency_tests_1.3/specific_fns/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/consistency_tests_1.3/specific_fns/__init__.py?rev=4209&r1=4208&r2=4209&view=diff
==============================================================================
--- branches/consistency_tests_1.3/specific_fns/__init__.py (original)
+++ branches/consistency_tests_1.3/specific_fns/__init__.py Tue Dec 18 
21:07:21 2007
@@ -26,6 +26,7 @@


 # relax module imports.
+from specific_fns.consistency_tests import Consistency_tests
 from specific_fns.hybrid import Hybrid
 from specific_fns.jw_mapping import Jw_mapping
 from specific_fns.model_free import Model_free
@@ -36,6 +37,7 @@

 # The available modules.
 __all__ = [ 'base_class',
+            'consistency_tests',
             'hybrid',
             'jw_mapping',
             'model_free',
@@ -44,6 +46,7 @@
             'relax_fit']

 # Set up all the classes.
+consistency_tests = Consistency_tests()
 hybrid = Hybrid()
 jw_mapping = Jw_mapping()
 model_free = Model_free()
@@ -236,6 +239,10 @@
     if function_type == 'relax_fit':
         return relax_fit

+    # Consistency testing.
+    if function_type == 'ct':
+        return consistency_tests
+
     # Reduced spectral density mapping.
     if function_type == 'jw':
         return jw_mapping
@@ -263,6 +270,10 @@
     if function_type == 'relax_fit':
         return "relaxation curve fitting"

+    # Consistency testing.
+    if function_type == 'ct':
+        return "consistency testing"
+
     # Reduced spectral density mapping.
     if function_type == 'jw':
         return "reduced spectral density mapping"

Modified: branches/consistency_tests_1.3/test_suite/system_tests/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/consistency_tests_1.3/test_suite/system_tests/__init__.py?rev=4209&r1=4208&r2=4209&view=diff
==============================================================================
--- branches/consistency_tests_1.3/test_suite/system_tests/__init__.py 
(original)
+++ branches/consistency_tests_1.3/test_suite/system_tests/__init__.py Tue 
Dec 18 21:07:21 2007
@@ -22,6 +22,7 @@


 __all__ = ['angles',
+           'consistency_tests',
            'diffusion_tensor',
            'generic.py',
            'jw_mapping',


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

This is the relax-commits mailing list
relax-commits@xxxxxxx

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




Related Messages


Powered by MHonArc, Updated Sat Dec 22 17:22:42 2007