Skip to content

Commit

Permalink
QDac make name formatter match channel name formatter (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen authored and WilliamHPNielsen committed Oct 13, 2017
1 parent 9a007d1 commit 72a9a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcodes/instrument_drivers/QDev/QDac_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def __init__(self, name, address, num_chans=48, update_currents=True):
multichan_paramclass=QDacMultiChannelParameter)

for i in self.chan_range:
channel = QDacChannel(self, 'chan{}'.format(i), i)
channel = QDacChannel(self, 'chan{:02}'.format(i), i)
channels.append(channel)
# Should raise valueerror if name is invalid (silently fails now)
self.add_submodule('ch{:02}'.format(i), channel)
Expand Down

0 comments on commit 72a9a81

Please sign in to comment.