summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTeresa <tnunez@mail.desy.de>2014-12-15 10:46:03 +0100
committerTeresa <tnunez@mail.desy.de>2014-12-15 10:54:47 +0100
commitf26960bd1e02e5921b5a4b3539aa914d1cbdd09a (patch)
treebb5b0fe6d1e1e215c500a0ad3af3f5c640e3b8c4 /src
parent59cf6b96ce4636b42ee9ce7e751c4b0241ab5a49 (diff)
Solving bug in FIO storage
Diffstat (limited to 'src')
-rw-r--r--src/sardana/macroserver/scan/recorder/storage.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sardana/macroserver/scan/recorder/storage.py b/src/sardana/macroserver/scan/recorder/storage.py
index 1a7f8f7a..9fc5252f 100644
--- a/src/sardana/macroserver/scan/recorder/storage.py
+++ b/src/sardana/macroserver/scan/recorder/storage.py
@@ -172,12 +172,12 @@ class FIO_FileRecorder(BaseFileRecorder):
outLine = " Col %d %s %s\n" % ( i, col.label, dType)
self.fd.write( outLine)
i += 1
- # +++
+ #
# 11.9.2012 timestamp to the end
#
outLine = " Col %d %s %s\n" % ( i, 'timestamp', 'DOUBLE')
self.fd.write( outLine)
- # +++
+
self.fd.flush()
def _writeRecord(self, record):
@@ -186,12 +186,13 @@ class FIO_FileRecorder(BaseFileRecorder):
nan, ctNames, fd = float('nan'), self.ctNames, self.fd
outstr = ''
for c in ctNames:
+ if c == "timestamp" or c == "point_nb":
+ continue
outstr += ' ' + str(record.data.get(c, nan))
- # +++
+ #
# 11.9.2012 timestamp to the end
#
outstr += ' ' + str(record.data.get('timestamp', nan))
- # +++
outstr += '\n'
fd.write( outstr )