mailr12601 - /1.3/generic_fns/pdc.py


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

Header


Content

Posted by edward on February 21, 2011 - 10:28:
Author: bugman
Date: Mon Feb 21 10:28:39 2011
New Revision: 12601

URL: http://svn.gna.org/viewcvs/relax?rev=12601&view=rev
Log:
The pdc.read() back end is now reading the PDC version information.


Modified:
    1.3/generic_fns/pdc.py

Modified: 1.3/generic_fns/pdc.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/pdc.py?rev=12601&r1=12600&r2=12601&view=diff
==============================================================================
--- 1.3/generic_fns/pdc.py (original)
+++ 1.3/generic_fns/pdc.py Mon Feb 21 10:28:39 2011
@@ -108,7 +108,12 @@
     # Loop over the data.
     in_ri_data = False
     for line in file_data:
-        print line
+        # The PDC version.
+        if len(line) > 2 and line[0] == 'generated' and line[1] == 'by:':
+            version = line[2]
+            for i in range(len(line)-3):
+                version = version + ' ' + line[i+3]
+
         # The data type.
         if len(line) == 3 and search('T1', line[2]):
             ri_label = 'R1'




Related Messages


Powered by MHonArc, Updated Mon Feb 21 10:40:02 2011