From: devicerandom Date: Fri, 24 Jul 2009 14:35:36 +0000 (+0000) Subject: (mfp1dexport.py) Fixed k determination, at least until we find news on the mysteries... X-Git-Tag: 0.9.0~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2c46d4966b1e391b1265d6141b2b4eee8dc3e0ca;p=hooke.git (mfp1dexport.py) Fixed k determination, at least until we find news on the mysteries of mfp export --- 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=[]