mailr26491 - in /branches/space_mapping_refactor: ./ 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 November 10, 2014 - 18:37:
Author: bugman
Date: Mon Nov 10 18:37:10 2014
New Revision: 26491

URL: http://svn.gna.org/viewcvs/relax?rev=26491&view=rev
Log:
Merged revisions 26483,26485 via svnmerge from 
svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk

........
  r26483 | tlinnet | 2014-11-10 16:05:54 +0100 (Mon, 10 Nov 2014) | 5 lines
  
  Speedup and fix for systemtest 
Relax_disp.test_dx_map_clustered_create_par_file.
  
  The following test was taken out, since this a particular interesting case.
  There exist a double minimum, where relax has not found the global minimum.
  This is due to not grid searching for R2A, but using the minimum value.
........
  r26485 | tlinnet | 2014-11-10 16:18:38 +0100 (Mon, 10 Nov 2014) | 3 lines
  
  Fix for systemtest Relax_disp.test_bug_atul_srivastava.
  
  The call to the expected RelaxError needed to be performed differently for 
erlier python versions that 2.7.
........

Modified:
    branches/space_mapping_refactor/   (props changed)
    branches/space_mapping_refactor/test_suite/system_tests/relax_disp.py

Propchange: branches/space_mapping_refactor/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Nov 10 18:37:10 2014
@@ -1 +1 @@
-/trunk:1-26385,26395,26482
+/trunk:1-26385,26395,26482-26485

Modified: 
branches/space_mapping_refactor/test_suite/system_tests/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/space_mapping_refactor/test_suite/system_tests/relax_disp.py?rev=26491&r1=26490&r2=26491&view=diff
==============================================================================
--- branches/space_mapping_refactor/test_suite/system_tests/relax_disp.py     
  (original)
+++ branches/space_mapping_refactor/test_suite/system_tests/relax_disp.py     
  Mon Nov 10 18:37:10 2014
@@ -141,18 +141,6 @@
             # Store in the status object.
             if methodName in to_skip:
                 status.skipped_tests.append([methodName, 'matplotlib 
module', self._skip_type])
-
-        # If not python 2.7, bug #22801 (https://gna.org/bugs/?22801): 
Failure of the relax test suite on Python 2.5.
-        # It is not possible to call: with self.assertRaises() before 
version 2.7
-        if not version_info >= (2,7):
-            # The list of tests to skip.
-            to_skip = [
-                "test_bug_atul_srivastava"
-            ]
-
-            # Store in the status object.
-            if methodName in to_skip:
-                status.skipped_tests.append([methodName, 'python 2.7', 
self._skip_type])
 
 
     def setUp(self):
@@ -1750,11 +1738,9 @@
             else:
                 constraints = False
                 min_algor = 'Newton'
-                with self.assertRaises(RelaxError):
-                    self.interpreter.minimise.grid_search(inc=GRID_INC)
-
-                with self.assertRaises(RelaxError):
-                    self.interpreter.minimise.execute(min_algor=min_algor, 
constraints=constraints)
+                self.assertRaises(RelaxError, 
self.interpreter.minimise.grid_search, inc=GRID_INC)
+                self.assertRaises(RelaxError, 
self.interpreter.minimise.execute, min_algor=min_algor, 
constraints=constraints)
+
         # Inspect.
         if False:
             # Loop over attributes.
@@ -1848,8 +1834,7 @@
         INSIGNIFICANCE = 1.0
 
         # Auto-analysis execution.
-        with self.assertRaises(RelaxError):
-            relax_disp.Relax_disp(pipe_name='relax_disp', 
results_dir=RESULTS_DIR, models=MODELS, grid_inc=GRID_INC, mc_sim_num=MC_NUM, 
modsel=MODSEL, insignificance=INSIGNIFICANCE, numeric_only=NUMERIC_ONLY)
+        self.assertRaises(RelaxError, relax_disp.Relax_disp, 
pipe_name='relax_disp', results_dir=RESULTS_DIR, models=MODELS, 
grid_inc=GRID_INC, mc_sim_num=MC_NUM, modsel=MODSEL, 
insignificance=INSIGNIFICANCE, numeric_only=NUMERIC_ONLY)
 
 
     def test_bug_negative_intensities_cpmg(self):
@@ -3205,7 +3190,7 @@
         self.assertAlmostEqual(pre_chi2, calc_chi2)
 
         # Define dx.map settings.
-        dx_inc = 5
+        dx_inc = 2
         dx_params = ['dw', 'k_AB', 'r2a']
         dx_point_clustered_min = [cur_spin.dw, cur_spin.k_AB, 
cur_spin.r2a['SQ CPMG - 499.86214000 MHz']]
 
@@ -3275,7 +3260,11 @@
                 print(line)
 
         # Assert that the initial global chi2 is lower than the map value.
-        self.assert_(pre_chi2 < test)
+
+        # The following test was taken out, since this a particular 
interesting case.
+        # There exist a double minimum, where relax has not found the global 
minimum.
+        # This is due to not grid searching for R2A, but using the minimum 
+        #self.assert_(pre_chi2 < test)
 
 
     def test_estimate_r2eff_err(self):




Related Messages


Powered by MHonArc, Updated Mon Nov 10 18:40:02 2014