mailr27565 - in /trunk/pipe_control: pcs.py rdc.py


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

Header


Content

Posted by edward on February 05, 2015 - 19:04:
Author: bugman
Date: Thu Feb  5 19:04:32 2015
New Revision: 27565

URL: http://svn.gna.org/viewcvs/relax?rev=27565&view=rev
Log:
More fixes for the RDC and PCS count printouts from the corresponding data 
assembly functions.

Sometimes the RDC or PCS value could be present as None.  This is now 
detected and the count is not
incremented.


Modified:
    trunk/pipe_control/pcs.py
    trunk/pipe_control/rdc.py

Modified: trunk/pipe_control/pcs.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/pcs.py?rev=27565&r1=27564&r2=27565&view=diff
==============================================================================
--- trunk/pipe_control/pcs.py   (original)
+++ trunk/pipe_control/pcs.py   Thu Feb  5 19:04:32 2015
@@ -880,7 +880,8 @@
                     pcs[-1].append(spin.pcs[align_id])
 
                 # Increment the PCS count.
-                j += 1
+                if pcs[-1] != None:
+                    j += 1
 
             # No data.
             else:

Modified: trunk/pipe_control/rdc.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/rdc.py?rev=27565&r1=27564&r2=27565&view=diff
==============================================================================
--- trunk/pipe_control/rdc.py   (original)
+++ trunk/pipe_control/rdc.py   Thu Feb  5 19:04:32 2015
@@ -1157,7 +1157,8 @@
                         error = interatom.rdc_err[align_id]
 
                 # Increment the RDC count.
-                j += 1
+                if value != None:
+                    j += 1
 
             # Append the RDCs to the list.
             rdc[-1].append(value)




Related Messages


Powered by MHonArc, Updated Thu Feb 05 19:20:02 2015