mailr12477 - /branches/bmrb/generic_fns/bmrb.py


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

Header


Content

Posted by edward on January 31, 2011 - 19:52:
Author: bugman
Date: Mon Jan 31 19:52:37 2011
New Revision: 12477

URL: http://svn.gna.org/viewcvs/relax?rev=12477&view=rev
Log:
The BMRB generate_sequence() function can now handle args of None.


Modified:
    branches/bmrb/generic_fns/bmrb.py

Modified: branches/bmrb/generic_fns/bmrb.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/bmrb.py?rev=12477&r1=12476&r2=12477&view=diff
==============================================================================
--- branches/bmrb/generic_fns/bmrb.py (original)
+++ branches/bmrb/generic_fns/bmrb.py Mon Jan 31 19:52:37 2011
@@ -76,6 +76,18 @@
     @type mol_names:        list of str or None
     """
 
+    # The blank data.
+    if not spin_nums:
+        spin_nums = [None] * N
+    if not spin_names:
+        spin_names = [None] * N
+    if not res_nums:
+        res_nums = [None] * N
+    if not res_names:
+        res_names = [None] * N
+    if not mol_names:
+        mol_names = [None] * N
+
     # Loop over the spin data.
     for i in range(N):
         # The spin already exists.
@@ -95,6 +107,8 @@
             # Name and number the spin.
             res_cont.spin[0].name = spin_names[i]
             res_cont.spin[0].num = spin_nums[i]
+
+            # Jump to the next spin.
             continue
 
         # Create the spin.




Related Messages


Powered by MHonArc, Updated Mon Jan 31 20:00:02 2011