From 42d97da7e3afadf50fbfa463cdae1f3306b7528f Mon Sep 17 00:00:00 2001 From: G Adam Cox Date: Fri, 3 Feb 2023 14:46:31 -0800 Subject: [PATCH] resets count_rate array --- src/qt3utils/datagenerators/piezoscanner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt3utils/datagenerators/piezoscanner.py b/src/qt3utils/datagenerators/piezoscanner.py index d91531f3..a04ead2e 100644 --- a/src/qt3utils/datagenerators/piezoscanner.py +++ b/src/qt3utils/datagenerators/piezoscanner.py @@ -132,7 +132,8 @@ def scan_axis(self, axis, min, max, step_size): def reset(self): self.scanned_raw_counts = [] - + self.scanned_count_rate = [] + def optimize_position(self, axis, center_position, width = 2, step_size = 0.25): ''' Performs a scan over a particular axis about `center_position`.