diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-18 22:18:29 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-18 22:18:29 -0500 |
commit | e13cad7924f9b387b55d34909d719aa85be87012 (patch) | |
tree | 213f1e061db84cb6e72208104af78f0885690956 /qolab/gui | |
parent | 3a5f4f4d517e854fb9b4e0f723c9f6de91f812b5 (diff) | |
download | pyExpControl-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.py | 5 |
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() |