From 3e533bd33435a342046754a173aa320f714c59d3 Mon Sep 17 00:00:00 2001 From: Pieter Eendebak Date: Thu, 9 Mar 2017 23:14:06 +0100 Subject: [PATCH] add sane default get_idn --- qcodes/instrument/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcodes/instrument/base.py b/qcodes/instrument/base.py index d2dc887423c..0a2ac8a4299 100644 --- a/qcodes/instrument/base.py +++ b/qcodes/instrument/base.py @@ -127,8 +127,8 @@ def get_idn(self): if len(idparts) < 4: idparts += [None] * (4 - len(idparts)) except: - logging.warn('Error getting or interpreting *IDN?: ' + repr(idstr)) - idparts = [None, None, None, None] + logging.debug('Error getting or interpreting *IDN?: ' + repr(idstr)) + idparts = [None, self.name, None, None] # some strings include the word 'model' at the front of model if str(idparts[1]).lower().startswith('model'):