Oops, replace `n` with `config['samples']` in _run_wiggles().
authorW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 03:35:58 +0000 (23:35 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 03:35:58 +0000 (23:35 -0400)
pypiezo/wiggle.py

index 08e66a4cb7d89f06593ca83774a3a9cfd92057b1..c1d16fee6101c582c2a2af608def6a94193261a8 100644 (file)
@@ -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: