(mfp1dexport.py) Fixed k determination, at least until we find news on the mysteries...
authordevicerandom <devnull@localhost>
Fri, 24 Jul 2009 14:35:36 +0000 (14:35 +0000)
committerdevicerandom <devnull@localhost>
Fri, 24 Jul 2009 14:35:36 +0000 (14:35 +0000)
mfp1dexport.py

index 6684f3ed44ac8102769ffc633dedefe6fe71b963..57e75d967c2406e0158a9665facc1406031b8e66 100644 (file)
@@ -42,7 +42,17 @@ class mfp1dexportDriver(lhc.Driver):
     def _read_columns(self):
         
         self.raw_columns=self.lines[39:]
-        self.k=float(self.raw_header[23][8:])
+        
+        kline=None
+        for line in self.lines:
+            if line[:7]=='SpringC':
+                kline=line
+                break
+        
+        kline=kline.split(':')
+        
+        #self.k=float(self.raw_header[23][8:])
+        self.k=float(kline[1])
         
         
         xext=[]