Author: bugman Date: Thu Feb 7 11:43:09 2008 New Revision: 4927 URL: http://svn.gna.org/viewcvs/relax?rev=4927&view=rev Log: Shifted the core of the angles system test into a relax script. Added: 1.3/test_suite/system_tests/scripts/angles.py Modified: 1.3/test_suite/system_tests/angles.py Modified: 1.3/test_suite/system_tests/angles.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/angles.py?rev=4927&r1=4926&r2=4927&view=diff ============================================================================== --- 1.3/test_suite/system_tests/angles.py (original) +++ 1.3/test_suite/system_tests/angles.py Thu Feb 7 11:43:09 2008 @@ -21,7 +21,6 @@ ############################################################################### # Python module imports. -import sys from unittest import TestCase # relax module imports. @@ -47,14 +46,5 @@ def test_angles(self): """The user function angles().""" - # Read a PDB file. - self.relax.interpreter._Structure.read_pdb(file='test.pdb', dir=sys.path[-1] + '/test_suite/system_tests/data', model=1) - - # Set the NH vector. - self.relax.interpreter._Structure.vectors(heteronuc='N', proton='H') - - # Initialise a diffusion tensor. - self.relax.interpreter._Diffusion_tensor.init((1.698e7, 1.417e7, 67.174, -83.718), param_types=3) - - # Calculate the angles. - self.relax.interpreter._Angles.angles() + # Execute the script. + self.relax.interpreter.run(script_file='test_suite/system_tests/scripts/angles.py') Added: 1.3/test_suite/system_tests/scripts/angles.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/scripts/angles.py?rev=4927&view=auto ============================================================================== --- 1.3/test_suite/system_tests/scripts/angles.py (added) +++ 1.3/test_suite/system_tests/scripts/angles.py Thu Feb 7 11:43:09 2008 @@ -1,0 +1,14 @@ +import sys + + +# Read a PDB file. +structure.read_pdb(file='test.pdb', dir=sys.path[-1] + '/test_suite/system_tests/data', model=1) + +# Set the NH vector. +structure.vectors(heteronuc='N', proton='H') + +# Initialise a diffusion tensor. +diffusion_tensor.init((1.698e7, 1.417e7, 67.174, -83.718), param_types=3) + +# Calculate the angles. +angles()