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)


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

This is the relax-commits mailing list
relax-commits@gna.org

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