Fix d -> deflection in bump_analyze.fit() bailout code.
authorW. Trevor King <wking@drexel.edu>
Tue, 27 Mar 2012 17:11:52 +0000 (13:11 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 27 Mar 2012 17:11:52 +0000 (13:11 -0400)
calibcant/bump_analyze.py

index 140add37fc05485bf6670751998e8265f23b00bd..7601cadb91b97692170c0d94f9bef5dbf1e61076 100644 (file)
@@ -320,7 +320,7 @@ def fit(z, deflection, high_voltage_rail,
     except ValueError:
         zd = _numpy.ndarray(list(z.shape) + [2], dtype=z.dtype)
         zd[:,0] = z
-        zd[:,1] = d
+        zd[:,1] = deflection
         _numpy.savetxt('/tmp/z-deflection.dat', zd, delimiter='\t')
         raise
     _LOG.debug('fitted params: %s' % p)