From 9285314cdb5dc844bc122393cbf276b758324dc0 Mon Sep 17 00:00:00 2001 From: Pieter Eendebak Date: Mon, 23 May 2016 17:49:12 +0200 Subject: [PATCH] fix check for the case res is a numpy array --- qcodes/utils/multiprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcodes/utils/multiprocessing.py b/qcodes/utils/multiprocessing.py index 1c2fbcadd899..931581101d10 100644 --- a/qcodes/utils/multiprocessing.py +++ b/qcodes/utils/multiprocessing.py @@ -305,7 +305,7 @@ def _check_for_errors(self, expect_error=False, query=None): def _check_response(self, timeout, query=None): res = self._response_queue.get(timeout=timeout) - if res == SERVER_ERR: + if res is SERVER_ERR: # TODO: I think the way we're doing this now, I could get rid of # _error_queue completely and just have errors and regular # responses labeled differently in _response_queue