From e3fd8606cb12862231caa0408ebbf272d952fe2f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 14 Mar 2012 23:35:58 -0400 Subject: [PATCH] Oops, replace `n` with `config['samples']` in _run_wiggles(). --- pypiezo/wiggle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypiezo/wiggle.py b/pypiezo/wiggle.py index 08e66a4..c1d16fe 100644 --- a/pypiezo/wiggle.py +++ b/pypiezo/wiggle.py @@ -149,7 +149,7 @@ def _update_plot(plot, cycle, data): def _run_wiggles(piezo, config, plot, output, filename=None, group='/', keypress_test_mode=False): - scan_frequency = config['frequency'] * n + scan_frequency = config['frequency'] * config['samples'] cycle = 0 c = _CheckForKeypress(test_mode=keypress_test_mode) while c.input() == None: -- 2.26.2