From: W. Trevor King Date: Thu, 15 Mar 2012 03:35:58 +0000 (-0400) Subject: Oops, replace `n` with `config['samples']` in _run_wiggles(). X-Git-Tag: 0.6~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3fd8606cb12862231caa0408ebbf272d952fe2f;p=pypiezo.git Oops, replace `n` with `config['samples']` in _run_wiggles(). --- 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: