aboutsummaryrefslogtreecommitdiff
path: root/qolab/gui
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-18 22:18:29 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-18 22:18:29 -0500
commite13cad7924f9b387b55d34909d719aa85be87012 (patch)
tree213f1e061db84cb6e72208104af78f0885690956 /qolab/gui
parent3a5f4f4d517e854fb9b4e0f723c9f6de91f812b5 (diff)
downloadpyExpControl-e13cad7924f9b387b55d34909d719aa85be87012.tar.gz
pyExpControl-e13cad7924f9b387b55d34909d719aa85be87012.zip
reset last save counter on a new file
Diffstat (limited to 'qolab/gui')
-rw-r--r--qolab/gui/web.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/qolab/gui/web.py b/qolab/gui/web.py
index e03e0e1..8227567 100644
--- a/qolab/gui/web.py
+++ b/qolab/gui/web.py
@@ -36,7 +36,7 @@ class QOLParamHeader(jp.Div):
return self.data[self.label]
def setValue(self, val):
- print(f'setting {self.label} to {val}')
+ # print(f'setting {self.label} to {val}')
self.data[self.label]=val
class QOLParamReadOnly(QOLParamHeader):
@@ -97,6 +97,7 @@ class QOLTimeLog(jp.Div):
if self.getNextDataFile is not None:
fname = self.getNextDataFile()
self.save_controls.file_name.setValue( fname )
+ self.traces.clear_last_saved_pos()
async def _save(self, msg):
self.save()
@@ -109,6 +110,7 @@ class QOLTimeLog(jp.Div):
return
if self.traces is None:
return
+ print(f'saving to {fname}')
self.traces.save(fname)
async def _clear_data(self, msg):
@@ -129,7 +131,6 @@ class QOLTimeLog(jp.Div):
if update_interval is not None:
self.update_interval.setValue(update_interval)
while True:
- print(f'update interval {self.update_interval.getValue()}')
self.plot()
try:
strwtime = self.update_interval.getValue()