diff bindings/python/pyadbmodule.c @ 749:dd4b9fec8d85

added support for timesData
author mas01mc
date Wed, 24 Nov 2010 13:50:05 +0000
parents e5f96902afaf
children d93292ae7c1b
line wrap: on
line diff
--- a/bindings/python/pyadbmodule.c	Mon Nov 22 17:58:27 2010 +0000
+++ b/bindings/python/pyadbmodule.c	Wed Nov 24 13:50:05 2010 +0000
@@ -208,8 +208,8 @@
 			return NULL;
 		}
 		// times = (PyArrayObject *)PyCObject_AsVoidPtr(incomingTime);
-		if (PyArray_NDIM(times) != 1 || PyArray_DIMS(times)[0] == (nVect*2)){
-			PyErr_SetString(PyExc_ValueError, "times, if given must be a 1d numpy array with shape =  (numVectors,)");
+		if (PyArray_NDIM(times) != 1 || PyArray_DIMS(times)[0] != (nVect*2)){
+			PyErr_SetString(PyExc_ValueError, "times, if given must be a 1d numpy array with shape =  (numVectors*2,)");
 			return NULL;
 		}
 	}