From 2c46d4966b1e391b1265d6141b2b4eee8dc3e0ca Mon Sep 17 00:00:00 2001 From: devicerandom Date: Fri, 24 Jul 2009 14:35:36 +0000 Subject: [PATCH] (mfp1dexport.py) Fixed k determination, at least until we find news on the mysteries of mfp export --- mfp1dexport.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mfp1dexport.py b/mfp1dexport.py index 6684f3e..57e75d9 100644 --- a/mfp1dexport.py +++ b/mfp1dexport.py @@ -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=[] -- 2.26.2