mailr4789 - /branches/consistency_tests_1.3/specific_fns/consistency_tests.py


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

Header


Content

Posted by sebastien . morin . 1 on January 16, 2008 - 16:48:
Author: semor
Date: Wed Jan 16 16:48:50 2008
New Revision: 4789

URL: http://svn.gna.org/viewcvs/relax?rev=4789&view=rev
Log:
Introduced the exists_mol_res_spin_data() function into the consitency tests 
code.

This change is part of the shifting to the new design.

I was explained in a post by Edward d'Auvergne at:
https://mail.gna.org/public/relax-devel/2008-01/msg00041.html (Message-id:
<7f080ed10801111043g7954a49fic72f433110d4cfbc@xxxxxxxxxxxxxx>)


Modified:
    branches/consistency_tests_1.3/specific_fns/consistency_tests.py

Modified: branches/consistency_tests_1.3/specific_fns/consistency_tests.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/consistency_tests_1.3/specific_fns/consistency_tests.py?rev=4789&r1=4788&r2=4789&view=diff
==============================================================================
--- branches/consistency_tests_1.3/specific_fns/consistency_tests.py 
(original)
+++ branches/consistency_tests_1.3/specific_fns/consistency_tests.py Wed Jan 
16 16:48:50 2008
@@ -50,8 +50,8 @@
             raise RelaxError, "The frequency has not been set up."
 
         # Test if the sequence data is loaded.
-        if not cdp.res.has_key:
-            raise RelaxNoSequenceError, self.run
+        if not exists_mol_res_spin_data():
+            raise RelaxNoSequenceError
 
         # Test if the CSA, bond length, angle Theta and correlation time 
values have been set.
         for spin in spin_loop(spin_id):
@@ -268,7 +268,7 @@
         cdp = relax_data_store[relax_data_store.current_pipe]
 
         # Test if sequence data is loaded.
-        if not cdp.res.has_key:
+        if not exists_mol_res_spin_data():
             return 0
 
         # Return the number of residues.
@@ -602,8 +602,8 @@
             raise RelaxNoPipeError, self.run
 
         # Test if sequence data is loaded.
-        if not cdp.res.has_key:
-            raise RelaxNoSequenceError, self.run
+        if not exists_mol_res_spin_data():
+            raise RelaxNoSequenceError
 
 
         # Header.




Related Messages


Powered by MHonArc, Updated Wed Jan 16 17:00:18 2008