mailr17477 - /trunk/generic_fns/bruker.py


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

Header


Content

Posted by edward on September 07, 2012 - 10:21:
Author: bugman
Date: Fri Sep  7 10:21:46 2012
New Revision: 17477

URL: http://svn.gna.org/viewcvs/relax?rev=17477&view=rev
Log:
The bruker.read user function now throws a RelaxError when old PDC files are 
detected.

This is a partial fix for bug #20152 (https://gna.org/bugs/?20152).


Modified:
    trunk/generic_fns/bruker.py

Modified: trunk/generic_fns/bruker.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/generic_fns/bruker.py?rev=17477&r1=17476&r2=17477&view=diff
==============================================================================
--- trunk/generic_fns/bruker.py (original)
+++ trunk/generic_fns/bruker.py Fri Sep  7 10:21:46 2012
@@ -154,6 +154,16 @@
         elif in_ri_data:
             # Skip the header.
             if row[0] == 'Peak name':
+                # Catch old PDC files (to fix https://gna.org/bugs/?20152).
+                pdc_file = False
+                if ri_type == 'R1' and not search('R1', line):
+                    pdc_file = True
+                elif ri_type == 'R2' and not search('R2', line):
+                    pdc_file = True
+                if pdc_file:
+                    raise RelaxError("The old Protein Dynamics Center (PDC) 
files are not supported")
+
+                # Skip.
                 continue
 
             # The residue info.




Related Messages


Powered by MHonArc, Updated Fri Sep 07 11:00:02 2012