Skip to content

Commit

Permalink
add sane default get_idn (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
peendebak authored and giulioungaretti committed Mar 10, 2017
1 parent 0e3ad1b commit 4651e11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qcodes/instrument/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit 4651e11

Please sign in to comment.