Skip to content

Commit 72a9a81

Browse files
jenshnielsenWilliamHPNielsen
authored andcommitted
QDac make name formatter match channel name formatter (#791)
1 parent 9a007d1 commit 72a9a81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qcodes/instrument_drivers/QDev/QDac_channels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def __init__(self, name, address, num_chans=48, update_currents=True):
218218
multichan_paramclass=QDacMultiChannelParameter)
219219

220220
for i in self.chan_range:
221-
channel = QDacChannel(self, 'chan{}'.format(i), i)
221+
channel = QDacChannel(self, 'chan{:02}'.format(i), i)
222222
channels.append(channel)
223223
# Should raise valueerror if name is invalid (silently fails now)
224224
self.add_submodule('ch{:02}'.format(i), channel)

0 commit comments

Comments
 (0)