Author: bugman
Date: Tue Mar  3 17:15:33 2015
New Revision: 27760

URL: http://svn.gna.org/viewcvs/relax?rev=27760&view=rev
Log:
The Rdc.test_rdc_copy_* system tests now check for the 'absolute_rdc' data 
structure.

This is in the Rdc.test_rdc_copy_different_spins and 
Rdc.test_rdc_copy_back_calc system tests and
shows that the rdc.copy user function fails to duplicate this information as 
well.


Modified:
    trunk/test_suite/system_tests/rdc.py

Modified: trunk/test_suite/system_tests/rdc.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/rdc.py?rev=27760&r1=27759&r2=27760&view=diff
==============================================================================
--- trunk/test_suite/system_tests/rdc.py        (original)
+++ trunk/test_suite/system_tests/rdc.py        Tue Mar  3 17:15:33 2015
@@ -175,10 +175,15 @@
                 if i == 1 and j == 1:
                     self.assert_(not hasattr(interatom, 'rdc'))
                     self.assert_(not hasattr(interatom, 'rdc_data_types'))
+                    self.assert_(not hasattr(interatom, 'absolute_rdc'))
                 else:
                     self.assertAlmostEqual(rdcs[i][j], interatom.rdc['tb'])
                     self.assert_(hasattr(interatom, 'rdc_data_types'))
                     self.assert_('tb' in interatom.rdc_data_types)
+                    self.assertEqual(interatom.rdc_data_types['tb'], 'D')
+                    self.assert_(hasattr(interatom, 'absolute_rdc'))
+                    self.assert_('tb' in interatom.absolute_rdc)
+                    self.assertEqual(interatom.absolute_rdc['tb'], False)
                 j += 1
 
 
@@ -254,11 +259,16 @@
                 if i == 1 and j == 1:
                     self.assert_(not hasattr(interatom, 'rdc'))
                     self.assert_(not hasattr(interatom, 'rdc_data_types'))
+                    self.assert_(not hasattr(interatom, 'absolute_rdc'))
                 else:
                     self.assertAlmostEqual(rdcs[i][j], interatom.rdc['tb'])
                     self.assertAlmostEqual(rdcs[i][j]+1.0, 
interatom.rdc_bc['tb'])
                     self.assert_(hasattr(interatom, 'rdc_data_types'))
                     self.assert_('tb' in interatom.rdc_data_types)
+                    self.assertEqual(interatom.rdc_data_types['tb'], 'D')
+                    self.assert_(hasattr(interatom, 'absolute_rdc'))
+                    self.assert_('tb' in interatom.absolute_rdc)
+                    self.assertEqual(interatom.absolute_rdc['tb'], False)
                 j += 1
 
 


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

This is the relax-commits mailing list
[email protected]

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