From 68794cc9ad86dc92c8b58b1b10ad3a9dc1236b41 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 2 Jun 2010 00:22:28 -0400 Subject: [PATCH] Remove blank column in wtk driver retraction curves. The old implentation reserved space for the z piezo input column, but never filled it in or added the relevant entry to info['columns']. This caused some column indexing confusion in vclamp.scale(). --- hooke/driver/wtk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooke/driver/wtk.py b/hooke/driver/wtk.py index c7387ff..46bf92e 100644 --- a/hooke/driver/wtk.py +++ b/hooke/driver/wtk.py @@ -156,7 +156,7 @@ class WTKDriver (Driver): array in SI units. """ ret = curve.Data( - shape=data.shape, + shape=(data.shape[0], 2), dtype=numpy.float, info=copy.deepcopy(info) ) -- 2.26.2