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-Url: http://git.tremily.us/?a=commitdiff_plain;h=3dcb8e6d8fbc6687b854fa5f326619013119528b;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=[]