projects
/
hooke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc09cc7
)
(mfp1dexport.py) Fixed k determination, at least until we find news on the mysteries...
author
devicerandom
<devnull@localhost>
Fri, 24 Jul 2009 14:35:36 +0000
(14:35 +0000)
committer
devicerandom
<devnull@localhost>
Fri, 24 Jul 2009 14:35:36 +0000
(14:35 +0000)
mfp1dexport.py
patch
|
blob
|
history
diff --git
a/mfp1dexport.py
b/mfp1dexport.py
index 6684f3ed44ac8102769ffc633dedefe6fe71b963..57e75d967c2406e0158a9665facc1406031b8e66 100644
(file)
--- 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=[]