diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2026-04-22 12:21:28 -0600 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2026-04-22 12:21:28 -0600 |
| commit | 91101126e9d044adb8afa635cca1ab5d5a4c51a6 (patch) | |
| tree | 5e8a5de10751e82e76092e37760cc984346f7eb7 /core/acquisition.py | |
| parent | 38ba9706e43c24a9d882b9d0d627812e01a30744 (diff) | |
Fixed saving profile to include devices and their configuration
Diffstat (limited to 'core/acquisition.py')
| -rw-r--r-- | core/acquisition.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/acquisition.py b/core/acquisition.py index afccb56..57fda7e 100644 --- a/core/acquisition.py +++ b/core/acquisition.py @@ -102,6 +102,11 @@ class AcquisitionEngine(QObject): def get_buffer(self, device_id: str, channel_id: str) -> Optional[ChannelBuffer]: return self._buffers.get(device_id, {}).get(channel_id) + def clear_history(self): + for ch_map in self._buffers.values(): + for buf in ch_map.values(): + buf.clear() + # ── Start / stop ───────────────────────────────────────────────────── def start(self): |
