Source code for qcodes.instrument_drivers.Keysight.Keysight_33500B_channels<
get_parser=float,
docstring=('The burst period is the time '
'between the starts of consecutive '
- 'bursts when trigger is immediate.')
- )
+ 'bursts when trigger is immediate.')
+ )
[docs]class Keysight_33500B_Channels(VisaInstrument):
@@ -491,8 +491,8 @@
Source code for qcodes.instrument_drivers.Keysight.Keysight_33500B_channels<
log.debug(' {}, {}'.format(err_code, err_message))
if verbose:
print(err_code, err_message)
-
- log.debug('...flushing complete')
+
+ log.debug('...flushing complete')
diff --git a/_modules/qcodes/instrument_drivers/Keysight/Keysight_34465A.html b/_modules/qcodes/instrument_drivers/Keysight/Keysight_34465A.html
index d22dc13734e..7e4d149c54a 100644
--- a/_modules/qcodes/instrument_drivers/Keysight/Keysight_34465A.html
+++ b/_modules/qcodes/instrument_drivers/Keysight/Keysight_34465A.html
@@ -219,8 +219,8 @@ Source code for qcodes.instrument_drivers.Keysight.Keysight_34465A
self.setpoints = (tuple(np.linspace(0, N*self.time_per_point, N)),)
self.shape = (N,)
-
- self.properly_prepared = True
+
+ self.properly_prepared = True
[docs] def get(self):
@@ -256,8 +256,8 @@
Source code for qcodes.instrument_drivers.Keysight.Keysight_34465A
numvals = None
self._instrument.display_clear()
-
- return numvals
+
+ return numvals
[docs]class Keysight_34465A(VisaInstrument):
@@ -614,8 +614,8 @@
Source code for qcodes.instrument_drivers.Keysight.Keysight_34465A
log.debug(' {}, {}'.format(err_code, err_message))
if verbose:
print(err_code, err_message)
-
- log.debug('...flushing complete')
+
+ log.debug('...flushing complete')
diff --git a/_modules/qcodes/instrument_drivers/Keysight/Keysight_E8267D.html b/_modules/qcodes/instrument_drivers/Keysight/Keysight_E8267D.html
index d200385b76d..69a9f38b12c 100644
--- a/_modules/qcodes/instrument_drivers/Keysight/Keysight_E8267D.html
+++ b/_modules/qcodes/instrument_drivers/Keysight/Keysight_E8267D.html
@@ -171,8 +171,8 @@ Source code for qcodes.instrument_drivers.Keysight.Keysight_E8267D
if stat.startswith('0'):
stat = 'Off'
elif stat.startswith('1'):
- stat = 'On'
- return stat
+ stat = 'On'
+ return stat
[docs]class Keysight_E8267D(VisaInstrument):
@@ -227,11 +227,11 @@
Source code for qcodes.instrument_drivers.Keysight.Keysight_E8267D
self
.connect_message()
-
[docs] def on(self):
-
self.set('status', 'on')
+
+
self.set('status', 'on')
-
[docs] def off(self):
-
self.set('status', 'off')
+
+ self.set('status', 'off')
diff --git a/_modules/qcodes/instrument_drivers/Keysight/M3201A.html b/_modules/qcodes/instrument_drivers/Keysight/M3201A.html
index 02fa3552e40..1ab70545311 100644
--- a/_modules/qcodes/instrument_drivers/Keysight/M3201A.html
+++ b/_modules/qcodes/instrument_drivers/Keysight/M3201A.html
@@ -180,8 +180,8 @@ Source code for qcodes.instrument_drivers.Keysight.M3201A
slot (int): slot number where the device is plugged in
"""
- def __init__(self, name, chassis=1, slot=7, **kwargs):
- super().__init__(name, chassis, slot, channels=4, triggers=8, **kwargs)
+ def __init__(self, name, chassis=1, slot=7, **kwargs):
+ super().__init__(name, chassis, slot, channels=4, triggers=8, **kwargs)
diff --git a/_modules/qcodes/instrument_drivers/Keysight/M3300A.html b/_modules/qcodes/instrument_drivers/Keysight/M3300A.html
index dbe08433a95..63628ff42aa 100644
--- a/_modules/qcodes/instrument_drivers/Keysight/M3300A.html
+++ b/_modules/qcodes/instrument_drivers/Keysight/M3300A.html
@@ -190,8 +190,8 @@ Source code for qcodes.instrument_drivers.Keysight.M3300A
Example:
AWG = AWG('M3300A')
"""
- def __init__(self, name, chassis=1, slot=8, **kwargs):
- super().__init__(name, chassis=1, slot=8, channels=4, triggers=8, **kwargs)
+ def __init__(self, name, chassis=1, slot=8, **kwargs):
+ super().__init__(name, chassis=1, slot=8, channels=4, triggers=8, **kwargs)
[docs]class M3300A_DIG(SD_DIG):
""" Driver for the digitizer of the keysight M3300A card.
@@ -204,8 +204,8 @@
Source code for qcodes.instrument_drivers.Keysight.M3300A
Example:
DIG = DIG('M3300A')
"""
- def __init__(self, name, chassis=1, slot=8, **kwargs):
- super().__init__(name, chassis, slot, channels=8, triggers=8, **kwargs)
+
def __init__(self, name, chassis=1, slot=8, **kwargs):
+ super().__init__(name, chassis, slot, channels=8, triggers=8, **kwargs)
diff --git a/_modules/qcodes/instrument_drivers/Keysight/N51x1.html b/_modules/qcodes/instrument_drivers/Keysight/N51x1.html
index f3acb0f197f..9b389ce6c8e 100644
--- a/_modules/qcodes/instrument_drivers/Keysight/N51x1.html
+++ b/_modules/qcodes/instrument_drivers/Keysight/N51x1.html
@@ -216,8 +216,8 @@ Source code for qcodes.instrument_drivers.Keysight.N51x1
IDN = self.ask_raw('*IDN?')
vendor, model, serial, firmware = map(str.strip, IDN.split(','))
IDN = {'vendor': vendor, 'model': model,
- 'serial': serial, 'firmware': firmware}
- return IDN
+ 'serial': serial, 'firmware': firmware}
+ return IDN
diff --git a/_modules/qcodes/instrument_drivers/Keysight/test_suite.html b/_modules/qcodes/instrument_drivers/Keysight/test_suite.html
index dbe9bd2cedf..6519bc24043 100644
--- a/_modules/qcodes/instrument_drivers/Keysight/test_suite.html
+++ b/_modules/qcodes/instrument_drivers/Keysight/test_suite.html
@@ -187,8 +187,8 @@ Source code for qcodes.instrument_drivers.Keysight.test_suite
driver
= SD_Module
[docs] @classmethod
-
def setUpClass(cls):
-
super().setUpClass()
+
def setUpClass(cls):
+ super().setUpClass()
[docs] def test_chassis_and_slot(self):
chassis_number = self.instrument.chassis_number()
@@ -201,8 +201,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
serial_number_test = self.instrument.get_serial_number_by_slot(chassis_number, slot_number)
# hack to make this test pass even with the current faulty Keysight lib (v.2.01.00)
- serial_number = serial_number[:-1]
- self.assertEqual(serial_number_test, serial_number)
+ serial_number = serial_number[:-1]
+ self.assertEqual(serial_number_test, serial_number)
[docs]@unittest.skipIf(not Keysight_M3201A, "Keysight_M3201A tests requires the keysightSD1 module")
@@ -230,20 +230,20 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
[docs] @classmethod
def setUpClass(cls):
super().setUpClass()
-
print('Did set up Class. Should have printed `found ..., testing`.')
-
cls.instrument.off() # Not a test but a safety measure
+
print('Did set up Class. Should have printed `found ..., testing`.')
+ cls.instrument.off() # Not a test but a safety measure
[docs] def test_chassis_number(self):
-
chassis_number = self.instrument.chassis_number()
-
self.assertEqual(chassis_number, 1)
+ chassis_number = self.instrument.chassis_number()
+ self.assertEqual(chassis_number, 1)
[docs] def test_slot_number(self):
-
slot_number = self.instrument.slot_number()
-
self.assertEqual(slot_number, 7)
+ slot_number = self.instrument.slot_number()
+ self.assertEqual(slot_number, 7)
[docs] def test_serial_number(self):
-
serial_number = self.instrument.serial_number()
-
self.assertEqual(serial_number, 'ES56600108')
+ serial_number = self.instrument.serial_number()
+ self.assertEqual(serial_number, 'ES56600108')
[docs] def test_chassis_and_slot(self):
chassis_number = self.instrument.chassis_number()
@@ -256,8 +256,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
serial_number_test = self.instrument.get_serial_number_by_slot(chassis_number, slot_number)
# hack to make this test pass even with the current faulty Keysight lib (v.2.01.00)
- serial_number = serial_number[:-1]
- self.assertEqual(serial_number_test, serial_number)
+
serial_number = serial_number[:-1]
+ self.assertEqual(serial_number_test, serial_number)
[docs] def test_open_close(self):
chassis_number = self.instrument.chassis_number()
@@ -275,8 +275,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.close_soft()
self.instrument.open_with_slot(product_name, chassis_number, slot_number)
- open_status = self.instrument.open()
- self.assertEqual(open_status, True)
+
open_status = self.instrument.open()
+ self.assertEqual(open_status, True)
[docs] def test_clock_frequency(self):
with self.assertRaises(ValueError):
@@ -293,8 +293,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.clock_frequency(test_f)
self.assertAlmostEqual(self.instrument.clock_frequency(), test_f, delta=1)
- # leave the setup in the initial state
- self.instrument.clock_frequency(cur_f)
+
# leave the setup in the initial state
+ self.instrument.clock_frequency(cur_f)
[docs] def test_channel_frequency(self):
cur_f = self.instrument.frequency_channel_0.get_latest()
@@ -313,8 +313,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
# leave the setup in the initial state or default values if no initial state was found
if cur_f:
self.instrument.frequency_channel_0.set(cur_f)
- else:
- self.instrument.frequency_channel_0.set(0)
+
else:
+ self.instrument.frequency_channel_0.set(0)
[docs] def test_channel_phase(self):
cur_p = self.instrument.phase_channel_0.get_latest()
@@ -333,8 +333,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
# leave the setup in the initial state or default values if no initial state was found
if cur_p:
self.instrument.phase_channel_0.set(cur_p)
- else:
- self.instrument.phase_channel_0.set(0)
+
else:
+ self.instrument.phase_channel_0.set(0)
[docs] def test_channel_amplitude(self):
cur_a = self.instrument.amplitude_channel_0.get_latest()
@@ -360,8 +360,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.amplitude_channel_0.set(0)
if cur_o:
self.instrument.offset_channel_0.set(cur_o)
- else:
- self.instrument.offset_channel_0.set(0)
+
else:
+ self.instrument.offset_channel_0.set(0)
[docs] def test_channel_offset(self):
cur_o = self.instrument.offset_channel_0.get_latest()
@@ -387,8 +387,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.offset_channel_0.set(0)
if cur_a:
self.instrument.amplitude_channel_0.set(cur_a)
- else:
- self.instrument.amplitude_channel_0.set(0)
+
else:
+ self.instrument.amplitude_channel_0.set(0)
[docs] def test_channel_wave_shape(self):
cur_w = self.instrument.wave_shape_channel_0.get_latest()
@@ -421,8 +421,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.offset_channel_0.set(0)
if cur_a:
self.instrument.amplitude_channel_0.set(cur_a)
- else:
- self.instrument.amplitude_channel_0.set(0)
+
else:
+ self.instrument.amplitude_channel_0.set(0)
[docs] def test_PXI_trigger(self):
with self.assertRaises(ValueError):
@@ -440,8 +440,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.pxi_trigger_number_0.set(test_pxi)
self.assertEqual(self.instrument.pxi_trigger_number_0.get(), test_pxi)
- # leave the setup in the initial state
- self.instrument.pxi_trigger_number_0.set(cur_pxi)
+ # leave the setup in the initial state
+ self.instrument.pxi_trigger_number_0.set(cur_pxi)
[docs]@unittest.skipIf(not M3300A_AWG, "M3300A_AWG tests requires the keysightSD1 module")
@@ -469,20 +469,20 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
[docs] @classmethod
def setUpClass(cls):
super().setUpClass()
-
print('Did set up Class. Should have printed `found ..., testing`.')
-
cls.instrument.off() # Not a test but a safety measure
+
print('Did set up Class. Should have printed `found ..., testing`.')
+ cls.instrument.off() # Not a test but a safety measure
[docs] def test_chassis_number(self):
-
chassis_number = self.instrument.chassis_number()
-
self.assertEqual(chassis_number, 1)
+ chassis_number = self.instrument.chassis_number()
+ self.assertEqual(chassis_number, 1)
[docs] def test_slot_number(self):
-
slot_number = self.instrument.slot_number()
-
self.assertEqual(slot_number, 8)
+ slot_number = self.instrument.slot_number()
+ self.assertEqual(slot_number, 8)
[docs] def test_serial_number(self):
-
serial_number = self.instrument.serial_number()
-
self.assertEqual(serial_number, 'ES56600101')
+ serial_number = self.instrument.serial_number()
+ self.assertEqual(serial_number, 'ES56600101')
[docs] def test_chassis_and_slot(self):
chassis_number = self.instrument.chassis_number()
@@ -495,8 +495,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
serial_number_test = self.instrument.get_serial_number_by_slot(chassis_number, slot_number)
# hack to make this test pass even with the current faulty Keysight lib (v.2.01.00)
- serial_number = serial_number[:-1]
- self.assertEqual(serial_number_test, serial_number)
+
serial_number = serial_number[:-1]
+ self.assertEqual(serial_number_test, serial_number)
[docs] def test_open_close(self):
chassis_number = self.instrument.chassis_number()
@@ -514,8 +514,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.close_soft()
self.instrument.open_with_slot(product_name, chassis_number, slot_number)
- open_status = self.instrument.open()
- self.assertEqual(open_status, True)
+
open_status = self.instrument.open()
+ self.assertEqual(open_status, True)
[docs] def test_clock_frequency(self):
# TODO: This does not work, figure out why
@@ -531,8 +531,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
#
# test_f = 453.152e6
# self.instrument.clock_frequency(test_f)
- # self.assertAlmostEqual(self.instrument.clock_frequency(), test_f, delta=1)
- print(cur_f)
+
# self.assertAlmostEqual(self.instrument.clock_frequency(), test_f, delta=1)
+ print(cur_f)
# leave the setup in the initial state
# self.instrument.clock_frequency(cur_f)
@@ -553,8 +553,8 @@ Source code for qcodes.instrument_drivers.Keysight.test_suite
# leave the setup in the initial state or default values if no initial state was found
if cur_f:
self.instrument.frequency_channel_0.set(cur_f)
- else:
- self.instrument.frequency_channel_0.set(0)
+ else:
+ self.instrument.frequency_channel_0.set(0)
[docs] def test_channel_phase(self):
cur_p = self.instrument.phase_channel_0.get_latest()
@@ -573,8 +573,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
# leave the setup in the initial state or default values if no initial state was found
if cur_p:
self.instrument.phase_channel_0.set(cur_p)
- else:
- self.instrument.phase_channel_0.set(0)
+
else:
+ self.instrument.phase_channel_0.set(0)
[docs] def test_channel_amplitude(self):
cur_a = self.instrument.amplitude_channel_0.get_latest()
@@ -600,8 +600,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.amplitude_channel_0.set(0)
if cur_o:
self.instrument.offset_channel_0.set(cur_o)
- else:
- self.instrument.offset_channel_0.set(0)
+
else:
+ self.instrument.offset_channel_0.set(0)
[docs] def test_channel_offset(self):
cur_o = self.instrument.offset_channel_0.get_latest()
@@ -627,8 +627,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.offset_channel_0.set(0)
if cur_a:
self.instrument.amplitude_channel_0.set(cur_a)
- else:
- self.instrument.amplitude_channel_0.set(0)
+
else:
+ self.instrument.amplitude_channel_0.set(0)
[docs] def test_channel_wave_shape(self):
cur_w = self.instrument.wave_shape_channel_0.get_latest()
@@ -661,8 +661,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.offset_channel_0.set(0)
if cur_a:
self.instrument.amplitude_channel_0.set(cur_a)
- else:
- self.instrument.amplitude_channel_0.set(0)
+
else:
+ self.instrument.amplitude_channel_0.set(0)
[docs] def test_PXI_trigger(self):
with self.assertRaises(ValueError):
@@ -680,8 +680,8 @@
Source code for qcodes.instrument_drivers.Keysight.test_suite
self.instrument.pxi_trigger_number_0.set(test_pxi)
self.assertEqual(self.instrument.pxi_trigger_number_0.get(), test_pxi)
- # leave the setup in the initial state
- self.instrument.pxi_trigger_number_0.set(cur_pxi)
+ # leave the setup in the initial state
+ self.instrument.pxi_trigger_number_0.set(cur_pxi)
diff --git a/_modules/qcodes/instrument_drivers/Lakeshore/Model_336.html b/_modules/qcodes/instrument_drivers/Lakeshore/Model_336.html
index c4db364a983..7606111f600 100644
--- a/_modules/qcodes/instrument_drivers/Lakeshore/Model_336.html
+++ b/_modules/qcodes/instrument_drivers/Lakeshore/Model_336.html
@@ -194,8 +194,8 @@ Source code for qcodes.instrument_drivers.Lakeshore.Model_336
'Sensor Units Zero': 64, 'Sensor Units Overrange': 128}, label='Sensor_Status')
self.add_parameter('sensor_name', get_cmd='INNAME? {}'.format(self._channel),
- get_parser=str, set_cmd='INNAME {},\"{{}}\"'.format(self._channel), vals=Strings(15),
- label='Sensor_Name')
+ get_parser=str, set_cmd='INNAME {},\"{{}}\"'.format(self._channel), vals=Strings(15),
+ label='Sensor_Name')
[docs]class Model_336(VisaInstrument):
@@ -218,8 +218,8 @@
Source code for qcodes.instrument_drivers.Lakeshore.Model_336
self.add_submodule(chan_name, channel)
channels.lock()
self.add_submodule("channels", channels)
-
- self.connect_message()
+
+ self.connect_message()
diff --git a/_modules/qcodes/instrument_drivers/QDev/QDac.html b/_modules/qcodes/instrument_drivers/QDev/QDac.html
index faf564d3a37..5f8486f3824 100644
--- a/_modules/qcodes/instrument_drivers/QDev/QDac.html
+++ b/_modules/qcodes/instrument_drivers/QDev/QDac.html
@@ -349,8 +349,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac
params_to_skip_update = self._params_to_skip_update
supfun = super().snapshot_base
snap = supfun(update=update,
- params_to_skip_update=params_to_skip_update)
- return snap
+ params_to_skip_update=params_to_skip_update)
+ return snap
#########################
# Channel gets/sets
@@ -458,8 +458,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac
if 'range' in param:
value = returnmap[param][value]
-
- return value
+
+ return value
def _get_status(self, readcurrents=False):
r'''
@@ -650,8 +650,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac
"""
Print the finite slopes assigned to channels
"""
- for sl in self._slopes:
- print('Channel {}, slope: {} (V/s)'.format(sl[0], sl[1]))
+ for sl in self._slopes:
+ print('Channel {}, slope: {} (V/s)'.format(sl[0], sl[1]))
def _rampvoltage(self, chan, fg, v_start, setvoltage, ramptime):
"""
@@ -725,11 +725,11 @@ Source code for qcodes.instrument_drivers.QDev.QDac
log.info('Sending command string: {}'.format(cmd))
nr_bytes_written, ret_code = self.visa_handle.write(cmd)
- self.check_error(ret_code)
- self._write_response = self.visa_handle.read()
+ self.check_error(ret_code)
+ self._write_response = self.visa_handle.read()
-[docs] def read(self):
-
return self.visa_handle.read()
+
+ return self.visa_handle.read()
def _wait_and_clear(self, delay=0.5):
time.sleep(delay)
@@ -747,8 +747,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac
self.visa_handle.read()))
# take care of the rest of the output
- for ii in range(50):
- self.visa_handle.read()
+ for ii in range(50):
+ self.visa_handle.read()
def _get_firmware_version(self):
self.write('status')
@@ -790,8 +790,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac
line += printdict[pp]
value = param.get_latest()
line += ': {}'.format(returnmap[pp][value])
- line += '. '
- print(line)
+ line += '. '
+ print(line)
diff --git a/_modules/qcodes/instrument_drivers/QDev/QDac_channels.html b/_modules/qcodes/instrument_drivers/QDev/QDac_channels.html
index b4eb8d0acc9..99ee431d8fe 100644
--- a/_modules/qcodes/instrument_drivers/QDev/QDac_channels.html
+++ b/_modules/qcodes/instrument_drivers/QDev/QDac_channels.html
@@ -279,8 +279,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac_channels
if params_to_skip_update is None:
params_to_skip_update = ('v', 'i', 'irange', 'vrange')
snap = super().snapshot_base(update=update,
- params_to_skip_update=params_to_skip_update)
- return snap
+ params_to_skip_update=params_to_skip_update)
+ return snap
[docs]class QDacMultiChannelParameter(MultiChannelInstrumentParameter):
@@ -307,8 +307,8 @@
Source code for qcodes.instrument_drivers.QDev.QDac_channels
else:
output = tuple(chan.parameters[self._param_name].get()
for chan in self._channels)
-
- return output
+
+ return output
[docs]class QDac(VisaInstrument):
@@ -438,8 +438,8 @@
Source code for qcodes.instrument_drivers.QDev.QDac_channels
# channel
snap = super().snapshot_base(update=update,
params_to_skip_update=params_to_skip_update)
- self._get_status_performed = False
- return snap
+
self._get_status_performed = False
+ return snap
#########################
# Channel gets/sets
@@ -554,8 +554,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac_channels
if 'range' in param:
value = returnmap[param][value]
-
- return value
+
+ return value
def _get_status(self, readcurrents=False):
r"""
@@ -743,8 +743,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac_channels
"""
Print the finite slopes assigned to channels
"""
- for sl in self._slopes:
- print('Channel {}, slope: {} (V/s)'.format(sl[0], sl[1]))
+ for sl in self._slopes:
+ print('Channel {}, slope: {} (V/s)'.format(sl[0], sl[1]))
def _rampvoltage(self, chan, fg, v_start, setvoltage, ramptime):
"""
@@ -815,11 +815,11 @@ Source code for qcodes.instrument_drivers.QDev.QDac_channels
nr_bytes_written, ret_code = self.visa_handle.write(cmd)
self.check_error(ret_code)
- for _ in range(cmd.count(';')+1):
- self._write_response = self.visa_handle.read()
+ for _ in range(cmd.count(';')+1):
+ self._write_response = self.visa_handle.read()
-[docs] def read(self):
-
return self.visa_handle.read()
+
+ return self.visa_handle.read()
def _wait_and_clear(self, delay=0.5):
time.sleep(delay)
@@ -837,8 +837,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac_channels
self.visa_handle.read()))
# take care of the rest of the output
- for _ in range(self._output_n_lines):
- self.visa_handle.read()
+ for _ in range(self._output_n_lines):
+ self.visa_handle.read()
def _get_firmware_version(self):
self.write('status')
@@ -878,8 +878,8 @@ Source code for qcodes.instrument_drivers.QDev.QDac_channels
line += printdict[pp]
value = param.get_latest()
line += ': {}'.format(returnmap[pp][value])
- line += '. '
- print(line)
+ line += '. '
+ print(line)
diff --git a/_modules/qcodes/instrument_drivers/QuTech/D4.html b/_modules/qcodes/instrument_drivers/QuTech/D4.html
index aef21be5f0e..5b3ce062f98 100644
--- a/_modules/qcodes/instrument_drivers/QuTech/D4.html
+++ b/_modules/qcodes/instrument_drivers/QuTech/D4.html
@@ -212,14 +212,14 @@ Source code for qcodes.instrument_drivers.QuTech.D4
get_cmd
=partial(self.d4.singleConversion, i),
units='V')
-
[docs] def get_mode(self):
-
return self.d4.mode
+
+
return self.d4.mode
-
[docs] def get_filter_value(self):
-
return self.d4.filter_val
+
[docs] def get_filter_value(self):
+
return self.d4.filter_val
-
[docs] def get_buffers_enabled(self):
-
return self.d4.buf_en
+[docs] def get_buffers_enabled(self):
+ return self.d4.buf_en
diff --git a/_modules/qcodes/instrument_drivers/QuTech/D5a.html b/_modules/qcodes/instrument_drivers/QuTech/D5a.html
index 8cb143fb88b..1cc84ea6a70 100644
--- a/_modules/qcodes/instrument_drivers/QuTech/D5a.html
+++ b/_modules/qcodes/instrument_drivers/QuTech/D5a.html
@@ -290,8 +290,8 @@ Source code for qcodes.instrument_drivers.QuTech.D5a
else:
msg = 'The found DAC span of {} does not correspond to a known one'
raise Exception(msg.format(span))
-
- return validator
+
+ return validator
diff --git a/_modules/qcodes/instrument_drivers/QuTech/F1d.html b/_modules/qcodes/instrument_drivers/QuTech/F1d.html
index 4a001a7d1e6..a9b4ca57c20 100644
--- a/_modules/qcodes/instrument_drivers/QuTech/F1d.html
+++ b/_modules/qcodes/instrument_drivers/QuTech/F1d.html
@@ -226,8 +226,8 @@ Source code for qcodes.instrument_drivers.QuTech.F1d
self
.add_function('clear_rf_clip', call_cmd=self.f1d.clear_rf_clip)
self.add_function('is_rf_clipped', call_cmd=self.f1d.rf_clipped)
-
[docs] def get_remote_settings(self):
-
return self.f1d.remote_settings
+[docs] def get_remote_settings(self):
+ return self.f1d.remote_settings
diff --git a/_modules/qcodes/instrument_drivers/QuTech/IVVI.html b/_modules/qcodes/instrument_drivers/QuTech/IVVI.html
index 04fdb500b40..7cb9ae9c12e 100644
--- a/_modules/qcodes/instrument_drivers/QuTech/IVVI.html
+++ b/_modules/qcodes/instrument_drivers/QuTech/IVVI.html
@@ -335,8 +335,8 @@ Source code for qcodes.instrument_drivers.QuTech.IVVI
return -1
idparts = ['QuTech', 'IVVI', 'None', self.version()]
-
- return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
+
+ return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
def _get_version(self):
if self.safe_version:
@@ -348,12 +348,12 @@ Source code for qcodes.instrument_drivers.QuTech.IVVI
ver
= mes[2]
return ver
-
[docs] def get_all(self):
-
return self.snapshot(update=True)
+
+
return self.snapshot(update=True)
[docs] def set_dacs_zero(self):
-
for i in range(self._numdacs):
-
self.set('dac{}'.format(i + 1), 0)
+
for i in range(self._numdacs):
+ self.set('dac{}'.format(i + 1), 0)
# Conversion of data
def _mvoltage_to_bytes(self, mvoltage):
@@ -487,8 +487,8 @@ Source code for qcodes.instrument_drivers.QuTech.IVVI
error_code = bytes([0])
message = bytes([message_len]) + error_code + message
self.visa_handle.write_raw(message)
-
- return expected_answer_length
+
+ return expected_answer_length
[docs] def ask(self, message, raw=False):
'''
@@ -510,8 +510,8 @@
Source code for qcodes.instrument_drivers.QuTech.IVVI
reply = self.read(message_len=message_len)
if self.lock:
self.lock.release()
-
- return reply
+
+ return reply
def _read_raw_bytes_direct(self, size):
""" Read raw data using the visa lib """
@@ -576,8 +576,8 @@ Source code for qcodes.instrument_drivers.QuTech.IVVI
# if mes[1] != 0:
# see protocol descriptor for error codes
- # raise Exception('IVVI rack exception "%s"' % mes[1])
- return mes
+ # raise Exception('IVVI rack exception "%s"' % mes[1])
+ return mes
[docs] def set_pol_dacrack(self, flag, channels, get_all=True):
'''
@@ -601,8 +601,8 @@
Source code for qcodes.instrument_drivers.QuTech.IVVI
# self.set_parameter_bounds('dac%d' % (i+1), val, val +
# self.Fullrange.0)
- if get_all:
- self.get_all()
+
if get_all:
+ self.get_all()
[docs] def get_pol_dac(self, channel):
'''
@@ -622,8 +622,8 @@
Source code for qcodes.instrument_drivers.QuTech.IVVI
return 'BIP'
elif (val == 0):
return 'POS'
- else:
- return 'Invalid polarity in memory'
+
else:
+ return 'Invalid polarity in memory'
def _gen_ch_set_func(self, fun, ch):
def set_func(val):
@@ -660,8 +660,8 @@ Source code for qcodes.instrument_drivers.QuTech.IVVI
value_pol_corr = value - self.pol_num[dacidx]
value_bytes = self._mvoltage_to_bytes(value_pol_corr)
value_round = (value_bytes[0] * 256 + value_bytes[1]) / \
- 65535.0 * self.Fullrange + self.pol_num[dacidx]
- return value_round
+ 65535.0 * self.Fullrange + self.pol_num[dacidx]
+ return value_round
[docs] def adjust_parameter_validator(self, param):
"""Adjust the parameter validator range based on the dac resolution.
@@ -682,8 +682,8 @@
Source code for qcodes.instrument_drivers.QuTech.IVVI
min_val_upd = self.round_dac(min_val, param.name)
max_val_upd = self.round_dac(max_val, param.name)
-
- param.vals = Numbers(min_val_upd, max_val_upd)
+
+ param.vals = Numbers(min_val_upd, max_val_upd)
'''
diff --git a/_modules/qcodes/instrument_drivers/QuTech/S5i.html b/_modules/qcodes/instrument_drivers/QuTech/S5i.html
index 2ced4c128d6..9813417baca 100644
--- a/_modules/qcodes/instrument_drivers/QuTech/S5i.html
+++ b/_modules/qcodes/instrument_drivers/QuTech/S5i.html
@@ -223,8 +223,8 @@ Source code for qcodes.instrument_drivers.QuTech.S5i
def _get_rf_frequency(self):
return self.s5i.rf_frequency
- def _optimize(self):
- self.s5i.set_frequency_optimally(self.s5i.rf_frequency)
+ def _optimize(self):
+ self.s5i.set_frequency_optimally(self.s5i.rf_frequency)
diff --git a/_modules/qcodes/instrument_drivers/Spectrum/py_header/regs.html b/_modules/qcodes/instrument_drivers/Spectrum/py_header/regs.html
index 930b137b062..65e9180b846 100644
--- a/_modules/qcodes/instrument_drivers/Spectrum/py_header/regs.html
+++ b/_modules/qcodes/instrument_drivers/Spectrum/py_header/regs.html
@@ -162,18 +162,18 @@
-
Source code for qcodes.instrument_drivers.Spectrum.py_header.regs
-[docs]def KILO(k): return ( 1000 * (k))
-
-[docs]def MEGA(m): return ( 1000 * 1000 * (m))
-
-[docs]def GIGA(g): return ( 1000 * 1000 * 1000 * (g))
-
-[docs]def KILO_B(k): return ( 1024 * (k))
-
-[docs]def MEGA_B(m): return ( 1024 * 1024 * (m))
-
-[docs]def GIGA_B(g): return ( 1024 * 1024 * 1024 * (g))
+ Source code for qcodes.instrument_drivers.Spectrum.py_header.regs
+[docs]def KILO(k): return ( 1000 * (k))
+
+[docs]def MEGA(m): return ( 1000 * 1000 * (m))
+
+[docs]def GIGA(g): return ( 1000 * 1000 * 1000 * (g))
+
+[docs]def KILO_B(k): return ( 1024 * (k))
+
+[docs]def MEGA_B(m): return ( 1024 * 1024 * (m))
+
+[docs]def GIGA_B(g): return ( 1024 * 1024 * 1024 * (g))
TYP_PCIDEVICEID = 0x00000000
TYP_EVAL = 0x00000010
diff --git a/_modules/qcodes/instrument_drivers/ZI/ZIUHFLI.html b/_modules/qcodes/instrument_drivers/ZI/ZIUHFLI.html
index 75944ed7abd..9f578226933 100644
--- a/_modules/qcodes/instrument_drivers/ZI/ZIUHFLI.html
+++ b/_modules/qcodes/instrument_drivers/ZI/ZIUHFLI.html
@@ -267,8 +267,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
channum - 1, 0, 'outputselect'),
set_cmd=partial(self._parent._setter, 'auxouts',
channum - 1, 0, 'outputselect'),
- val_mapping=outputvalmapping
- )
+
val_mapping=outputvalmapping
+ )
[docs]class Sweep(MultiParameter):
"""
@@ -376,8 +376,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
for (setting, value) in sweepdict.items():
setting = 'sweep/' + setting
self._instrument.sweeper.set(setting, value)
-
- self._instrument.sweep_correctly_built = True
+
+ self._instrument.sweep_correctly_built = True
[docs] def get(self):
"""
@@ -449,8 +449,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
for (state, sigstr) in zip(streamsettings, signals):
path = '/'.join(sigstr.split('/')[:-1])
daq.setInt(path.replace('sample', 'enable'), int(state))
-
- return self._parsesweepdata(data)
+
+ return self._parsesweepdata(data)
def _parsesweepdata(self, sweepresult):
"""
@@ -473,8 +473,8 @@ Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
attr = signal.split('/')[-1]
data = sweepresult[path][0][0][trans[attr]]
returndata.append(data)
-
- return tuple(returndata)
+
+
return tuple(returndata)
[docs]class Scope(MultiParameter):
@@ -510,8 +510,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
has been armed. The action must be a callable taking zero
arguments
"""
- if action not in self._scopeactions:
- self._scopeactions.append(action)
+
if action not in self._scopeactions:
+
self._scopeactions.append(action)
@property
def post_trigger_actions(self) -> List[Callable]:
@@ -663,8 +663,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
self.labels = ('Scope channel 1', 'Scope channel 2')
self.shapes = ((segs, npts), (segs, npts))
- self._instrument.daq.sync()
- self._instrument.scope_correctly_built = True
+
self._instrument.daq.sync()
+
self._instrument.scope_correctly_built = True
[docs] def get(self):
"""
@@ -787,8 +787,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
t_stop = time.monotonic()
log.info('scope get method returning after {} s'.format(t_stop -
- t_start))
- return data
+
t_start))
+
return data
@staticmethod
def _scopedataparser(rawdata, deviceID, scopelength, segments, channels):
@@ -817,8 +817,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
ch2data = data['wave'][1].reshape(segments, scopelength)
else:
ch2data = None
-
- return (ch1data, ch2data)
+
+ return (ch1data, ch2data)
[docs]class ZIUHFLI(Instrument):
"""
@@ -1977,8 +1977,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
const = {1: 0.249, 2: 0.124, 3: 0.093, 4: 0.078, 5: 0.068,
6: 0.061, 7: 0.056, 8: 0.052}
tau_c = const[order]/NEPBW
-
- return tau_c
+
+ return tau_c
def _get_sweep_time(self):
"""
@@ -2124,8 +2124,8 @@ Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
signalstring = ('/' + self.device +
'/demods/{}/sample/{}'.format(demodulator-1,
attribute))
- if signalstring not in self._sweeper_signals:
- self._sweeper_signals.append(signalstring)
+ if signalstring not in self._sweeper_signals:
+ self._sweeper_signals.append(signalstring)
[docs] def remove_signal_from_sweeper(self, demodulator, attribute):
"""
@@ -2146,8 +2146,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
log.warning('Can not remove signal with {} of'.format(attribute) +
' demodulator {}, since it was'.format(demodulator) +
' not previously added.')
- else:
- self._sweeper_signals.remove(signalstring)
+
else:
+ self._sweeper_signals.remove(signalstring)
[docs] def print_sweeper_settings(self):
"""
@@ -2201,8 +2201,8 @@
Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
print(' Expected sweep time: N/A in auto mode')
print(' Sweep timeout: {} ({})'.format(self.sweeper_timeout.get(),
's'))
- ready = self.sweep_correctly_built
- print(' Sweep built and ready to execute: {}'.format(ready))
+
ready = self.sweep_correctly_built
+ print(' Sweep built and ready to execute: {}'.format(ready))
def _scope_setter(self, scopemodule, mode, setting, value):
"""
@@ -2339,8 +2339,8 @@ Source code for qcodes.instrument_drivers.ZI.ZIUHFLI
self.scope.unsubscribe('/{}/scopes/0/wave'.format(self.device))
self.scope.clear()
self.sweeper.clear()
- self.daq.disconnect()
- super().close()
+ self.daq.disconnect()
+ super().close()
diff --git a/_modules/qcodes/instrument_drivers/agilent/Agilent_34400A.html b/_modules/qcodes/instrument_drivers/agilent/Agilent_34400A.html
index c1ec71ffd7f..0405c3ff593 100644
--- a/_modules/qcodes/instrument_drivers/agilent/Agilent_34400A.html
+++ b/_modules/qcodes/instrument_drivers/agilent/Agilent_34400A.html
@@ -298,11 +298,11 @@ Source code for qcodes.instrument_drivers.agilent.Agilent_34400A
while True:
err = self.ask('SYST:ERR?')
if 'No error' in err:
- return
- print(err)
+ return
+ print(err)
-[docs] def init_measurement(self):
-
self.write('INIT')
+[docs] def init_measurement(self):
+ self.write('INIT')
[docs] def display_clear(self):
if self.model in ['34401A']:
@@ -313,11 +313,11 @@
Source code for qcodes.instrument_drivers.agilent.Agilent_34400A
raise ValueError('unrecognized model: ' + str(self.model))
for line in lines:
- self.write('DISP:' + line + ':TEXT:CLE')
- self.write('DISP:' + line + ':STAT 1')
+
self.write('DISP:' + line + ':TEXT:CLE')
+ self.write('DISP:' + line + ':STAT 1')
-[docs] def reset(self):
-
self.write('*RST')
+
+ self.write('*RST')
diff --git a/_modules/qcodes/instrument_drivers/agilent/E8267C.html b/_modules/qcodes/instrument_drivers/agilent/E8267C.html
index b054ae02e65..924fe5b3b9c 100644
--- a/_modules/qcodes/instrument_drivers/agilent/E8267C.html
+++ b/_modules/qcodes/instrument_drivers/agilent/E8267C.html
@@ -250,12 +250,12 @@ Source code for qcodes.instrument_drivers.agilent.E8267C
# functions to convert between rad and deg
[docs] @staticmethod
-
def deg_to_rad(angle_deg):
-
return np.deg2rad(float(angle_deg))
+
def deg_to_rad(angle_deg):
+ return np.deg2rad(float(angle_deg))
[docs] @staticmethod
-
def rad_to_deg(angle_rad):
-
return np.rad2deg(float(angle_rad))
+ def rad_to_deg(angle_rad):
+ return np.rad2deg(float(angle_rad))
diff --git a/_modules/qcodes/instrument_drivers/agilent/E8527D.html b/_modules/qcodes/instrument_drivers/agilent/E8527D.html
index 838c55343e4..ed65d8ad2ec 100644
--- a/_modules/qcodes/instrument_drivers/agilent/E8527D.html
+++ b/_modules/qcodes/instrument_drivers/agilent/E8527D.html
@@ -223,25 +223,25 @@ Source code for qcodes.instrument_drivers.agilent.E8527D
# Note it would be useful to have functions like this in some module instad
# of repeated in every instrument driver
[docs] def rad_to_deg(self, angle_rad):
-
angle_deg = float(angle_rad)/(2*pi)*360
-
return angle_deg
+
angle_deg = float(angle_rad)/(2*pi)*360
+ return angle_deg
[docs] def deg_to_rad(self, angle_deg):
-
angle_rad = float(angle_deg)/360 * 2 * pi
-
return angle_rad
+ angle_rad = float(angle_deg)/360 * 2 * pi
+ return angle_rad
[docs] def parse_on_off(self, stat):
if stat.startswith('0'):
stat = 'Off'
elif stat.startswith('1'):
-
stat = 'On'
-
return stat
+ stat = 'On'
+ return stat
-[docs] def on(self):
-
self.set('status', 'on')
+
+ self.set('status', 'on')
-[docs] def off(self):
-
self.set('status', 'off')
+
+ self.set('status', 'off')
diff --git a/_modules/qcodes/instrument_drivers/agilent/HP33210A.html b/_modules/qcodes/instrument_drivers/agilent/HP33210A.html
index 489d5c48902..59fb4e13d19 100644
--- a/_modules/qcodes/instrument_drivers/agilent/HP33210A.html
+++ b/_modules/qcodes/instrument_drivers/agilent/HP33210A.html
@@ -274,8 +274,8 @@ Source code for qcodes.instrument_drivers.agilent.HP33210A
get_cmd='VOLT:LOW?',
set_cmd='VOLT:LOW {:.3f}',
get_parser=float,
- vals=vals.Numbers(-5, 5))
- self.connect_message()
+ vals=vals.Numbers(-5, 5))
+ self.connect_message()
diff --git a/_modules/qcodes/instrument_drivers/agilent/test_suite.html b/_modules/qcodes/instrument_drivers/agilent/test_suite.html
index 13fb53bfa70..e5a5287b6b9 100644
--- a/_modules/qcodes/instrument_drivers/agilent/test_suite.html
+++ b/_modules/qcodes/instrument_drivers/agilent/test_suite.html
@@ -177,13 +177,13 @@ Source code for qcodes.instrument_drivers.agilent.test_suite
[docs] @classmethod
def setUpClass(cls):
-
super().setUpClass()
-
cls.instrument.off() # Not a test but a safety measure
+ super().setUpClass()
+ cls.instrument.off() # Not a test but a safety measure
[docs] def test_firmware_version(self):
v = self.instrument.IDN.get()
-
self.assertEqual(v['vendor'], 'Agilent Technologies')
-
self.assertEqual(v['model'], 'E8257D')
+ self.assertEqual(v['vendor'], 'Agilent Technologies')
+ self.assertEqual(v['model'], 'E8257D')
[docs] def test_on_off(self):
self.instrument.off()
@@ -203,8 +203,8 @@
Source code for qcodes.instrument_drivers.agilent.test_suite
self.assertEqual(self.instrument.status.get(), 'Off')
# This should raise an error because it is not a valid input
- with self.assertRaises(ValueError):
- self.instrument.status.set('on24')
+
with self.assertRaises(ValueError):
+ self.instrument.status.set('on24')
[docs] def test_frequency(self):
with self.assertRaises(ValueError):
@@ -221,8 +221,8 @@
Source code for qcodes.instrument_drivers.agilent.test_suite
self.instrument.frequency.set(test_f)
self.assertEqual(self.instrument.frequency.get(), test_f)
- # leave the setup in the initial state
- self.instrument.frequency.set(cur_f)
+
# leave the setup in the initial state
+ self.instrument.frequency.set(cur_f)
[docs] def test_power(self):
with self.assertRaises(ValueError):
@@ -239,8 +239,8 @@
Source code for qcodes.instrument_drivers.agilent.test_suite
self.instrument.power.set(test_val)
self.assertEqual(self.instrument.power.get(), test_val)
- # leave the setup in the initial state
- self.instrument.power.set(cur_val)
+
# leave the setup in the initial state
+ self.instrument.power.set(cur_val)
[docs] def test_phase(self):
with self.assertRaises(ValueError):
@@ -257,8 +257,8 @@
Source code for qcodes.instrument_drivers.agilent.test_suite
self.instrument.phase.set(test_val)
self.assertAlmostEqual(self.instrument.phase.get(), test_val, places=4)
- # leave the setup in the initial state
- self.instrument.phase.set(cur_val)
+ # leave the setup in the initial state
+ self.instrument.phase.set(cur_val)
diff --git a/_modules/qcodes/instrument_drivers/american_magnetics/AMI430.html b/_modules/qcodes/instrument_drivers/american_magnetics/AMI430.html
index c232093f8ae..05a94ac8e15 100644
--- a/_modules/qcodes/instrument_drivers/american_magnetics/AMI430.html
+++ b/_modules/qcodes/instrument_drivers/american_magnetics/AMI430.html
@@ -350,8 +350,8 @@ Source code for qcodes.instrument_drivers.american_magnetics.AMI430
return
False
-
[docs] def set_field(self, value, *, perform_safety_check=True):
-
self._set_field(value, perform_safety_check=perform_safety_check)
+
[docs] def set_field(self, value, *, perform_safety_check=True):
+
self._set_field(value, perform_safety_check=perform_safety_check)
def _set_field(self, value, *, perform_safety_check=True):
"""
@@ -468,8 +468,8 @@
Source code for qcodes.instrument_drivers.american_magnetics.AMI430
430 programmer
:return: None
"""
- super()._connect()
- self.flush_connection()
+
super()._connect()
+ self.flush_connection()
[docs]class AMI430_3D(Instrument):
@@ -799,8 +799,8 @@
Source code for qcodes.instrument_drivers.american_magnetics.AMI430
self._set_fields(self._set_point.get_components("x", "y", "z"))
def _set_rho(self, rho):
- self._set_point.set_component(rho=rho)
- self._set_fields(self._set_point.get_components("x", "y", "z"))
+
self._set_point.set_component(rho=rho)
+ self._set_fields(self._set_point.get_components("x", "y", "z"))
diff --git a/_modules/qcodes/instrument_drivers/devices.html b/_modules/qcodes/instrument_drivers/devices.html
index 02d97c8d5ee..071ad5d783d 100644
--- a/_modules/qcodes/instrument_drivers/devices.html
+++ b/_modules/qcodes/instrument_drivers/devices.html
@@ -239,8 +239,8 @@ Source code for qcodes.instrument_drivers.devices
[docs] def set_raw(self, value: Union[int, float]) -> None:
instrument_value = value * self.division_value
-
self._save_val(value)
-
self.v1.set(instrument_value)
+ self._save_val(value)
+ self.v1.set(instrument_value)
[docs] def get_raw(self) -> Union[int, float]:
"""
@@ -248,16 +248,16 @@
Source code for qcodes.instrument_drivers.devices
number: value at which was set at the sample
"""
value = self.v1.get() / self.division_value
- self._save_val(value)
- return value
+
self._save_val(value)
+ return value
[docs] def get_instrument_value(self) -> Union[int, float]:
"""
Returns:
number: value at which the attached paraemter is (i.e. does
not account for the scaling)
-
"""
-
return self.v1.get()
+ """
+ return self.v1.get()
diff --git a/_modules/qcodes/instrument_drivers/ithaco/Ithaco_1211.html b/_modules/qcodes/instrument_drivers/ithaco/Ithaco_1211.html
index da4302bb03e..00280d3fc5a 100644
--- a/_modules/qcodes/instrument_drivers/ithaco/Ithaco_1211.html
+++ b/_modules/qcodes/instrument_drivers/ithaco/Ithaco_1211.html
@@ -216,8 +216,8 @@ Source code for qcodes.instrument_drivers.ithaco.Ithaco_1211
current *= -1
value = (volt, current)
- self._save_val(value)
- return value
+ self._save_val(value)
+ return value
[docs]class Ithaco_1211(Instrument):
@@ -271,8 +271,8 @@
Source code for qcodes.instrument_drivers.ithaco.Ithaco_1211
model = '1211'
serial = None
firmware = None
- return {'vendor': vendor, 'model': model,
- 'serial': serial, 'firmware': firmware}
+ return {'vendor': vendor, 'model': model,
+ 'serial': serial, 'firmware': firmware}
diff --git a/_modules/qcodes/instrument_drivers/oxford/ILM200.html b/_modules/qcodes/instrument_drivers/oxford/ILM200.html
index e4dbdd53f9a..88652939f99 100644
--- a/_modules/qcodes/instrument_drivers/oxford/ILM200.html
+++ b/_modules/qcodes/instrument_drivers/oxford/ILM200.html
@@ -300,8 +300,8 @@ Source code for qcodes.instrument_drivers.oxford.ILM200
logging.warn('Error getting or interpreting *IDN?: ' + repr(idstr))
logging.debug(ex)
idparts = [None, None, None, None]
-
- return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
+
+ return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
[docs] def get_all(self):
"""
@@ -310,16 +310,16 @@
Source code for qcodes.instrument_drivers.oxford.ILM200
"""
logging.info(__name__ + ' : reading all settings from instrument')
self.level.get()
- self.status.get()
- self.rate.get()
+
self.status.get()
+ self.rate.get()
[docs] def close(self):
"""
Safely close connection
"""
logging.info(__name__ + ' : Closing ILM200 connection')
-
self.local()
-
super().close()
+ self.local()
+ super().close()
# Functions: Monitor commands
def _get_version(self):
@@ -397,15 +397,15 @@ Source code for qcodes.instrument_drivers.oxford.ILM200
"""
Set control to remote & locked
"""
- logging.info(__name__ + ' : Set control to remote & locked')
- self.set_remote_status(1)
+ logging.info(__name__ + ' : Set control to remote & locked')
+ self.set_remote_status(1)
[docs] def local(self):
"""
Set control to local & locked
"""
-
logging.info(__name__ + ' : Set control to local & locked')
-
self.set_remote_status(0)
+ logging.info(__name__ + ' : Set control to local & locked')
+ self.set_remote_status(0)
[docs] def set_remote_status(self, mode):
"""
@@ -428,8 +428,8 @@
Source code for qcodes.instrument_drivers.oxford.ILM200
3: "Remote and unlocked",
}
logging.info(__name__ + ' : Setting remote control status to %s' %
- status.get(mode, "Unknown"))
- self._execute('C%s' % mode)
+
status.get(mode, "Unknown"))
+ self._execute('C%s' % mode)
# Functions: Control commands (only recognised when in REMOTE control)
[docs] def set_to_slow(self):
@@ -438,8 +438,8 @@
Source code for qcodes.instrument_drivers.oxford.ILM200
"""
self.set_remote_status(1)
logging.info(__name__ + ' : Setting Helium Probe in SLOW rate')
- self._execute('S1')
- self.set_remote_status(3)
+
self._execute('S1')
+ self.set_remote_status(3)
[docs] def set_to_fast(self):
"""
@@ -447,8 +447,8 @@
Source code for qcodes.instrument_drivers.oxford.ILM200
"""
self.set_remote_status(1)
logging.info(__name__ + ' : Setting Helium Probe in FAST rate')
- self._execute('T1')
- self.set_remote_status(3)
+
self._execute('T1')
+ self.set_remote_status(3)
def _do_set_rate(self, rate):
"""
@@ -464,8 +464,8 @@ Source code for qcodes.instrument_drivers.oxford.ILM200
self.set_to_slow()
elif rate == 1:
self.set_to_fast()
- self.set_remote_status(3)
- logging.info(self._do_get_rate())
+ self.set_remote_status(3)
+ logging.info(self._do_get_rate())
diff --git a/_modules/qcodes/instrument_drivers/oxford/IPS120.html b/_modules/qcodes/instrument_drivers/oxford/IPS120.html
index aabfc79cc45..16e4e04cde0 100644
--- a/_modules/qcodes/instrument_drivers/oxford/IPS120.html
+++ b/_modules/qcodes/instrument_drivers/oxford/IPS120.html
@@ -322,8 +322,8 @@ Source code for qcodes.instrument_drivers.oxford.IPS120
Reads all implemented parameters from the instrument,
and updates the wrapper.
"""
- log.info('reading all settings from instrument')
- self.snapshot(update=True)
+ log.info('reading all settings from instrument')
+ self.snapshot(update=True)
def _execute(self, message):
"""
@@ -358,8 +358,8 @@ Source code for qcodes.instrument_drivers.oxford.IPS120
[docs] def identify(self):
"""Identify the device"""
-
log.info('Identify the device')
-
return self._execute('V')
+ log.info('Identify the device')
+ return self._execute('V')
[docs] def examine(self):
"""Examine the status of the device"""
@@ -380,24 +380,24 @@
Source code for qcodes.instrument_drivers.oxford.IPS120
print('Mode: ')
print(self.mode())
- print('Polarity: ')
- print(self.polarity())
+
print('Polarity: ')
+ print(self.polarity())
[docs] def remote(self):
"""Set control to remote and unlocked"""
-
log.info('Set control to remote and unlocked')
-
self.remote_status(3)
+ log.info('Set control to remote and unlocked')
+ self.remote_status(3)
[docs] def local(self):
"""Set control to local and unlocked"""
-
log.info('Set control to local and unlocked')
-
self.remote_status(2)
+ log.info('Set control to local and unlocked')
+ self.remote_status(2)
[docs] def close(self):
"""Safely close connection"""
log.info('Closing IPS120 connection')
-
self.local()
-
super().close()
+ self.local()
+ super().close()
[docs] def get_idn(self):
"""
@@ -411,8 +411,8 @@
Source code for qcodes.instrument_drivers.oxford.IPS120
A dict containing vendor, model, serial, and firmware.
"""
idparts = ['Oxford Instruments', 'IPS120', None, None]
-
- return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
+
+ return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
def _get_remote_status(self):
"""
@@ -805,18 +805,18 @@ Source code for qcodes.instrument_drivers.oxford.IPS120
print
('Invalid mode inserted.')
[docs] def hold(self):
-
"""Set the device activity to Hold"""
-
self.activity(0)
+
"""Set the device activity to Hold"""
+ self.activity(0)
[docs] def to_setpoint(self):
-
"""Set the device activity to "To set point". This initiates a sweep."""
-
self.activity(1)
+ """Set the device activity to "To set point". This initiates a sweep."""
+ self.activity(1)
[docs] def to_zero(self):
"""
Set the device activity to "To zero". This sweeps te magnet back to zero.
-
"""
-
self.activity(2)
+ """
+ self.activity(2)
def _get_switch_heater(self):
"""
@@ -883,8 +883,8 @@ Source code for qcodes.instrument_drivers.oxford.IPS120
else:
print('Current in the leads is not matching persistent current!')
else:
- print('Magnet supply not at rest, cannot switch on heater!')
- self.switch_heater()
+ print('Magnet supply not at rest, cannot switch on heater!')
+ self.switch_heater()
[docs] def set_persistent(self):
"""
@@ -902,8 +902,8 @@
Source code for qcodes.instrument_drivers.oxford.IPS120
self.to_zero()
self.get_all()
else:
- print('Magnet is not at rest, cannot put it in persistent mode')
- self.get_all()
+
print('Magnet is not at rest, cannot put it in persistent mode')
+ self.get_all()
[docs] def leave_persistent_mode(self):
"""
@@ -927,8 +927,8 @@
Source code for qcodes.instrument_drivers.oxford.IPS120
elif self.switch_heater() == 0:
print('Heater is off, but magnet is not in persistent mode. Please, check magnet locally!')
- self.get_all()
- self.get_changed()
+
self.get_all()
+ self.get_changed()
[docs] def run_to_field(self, field_value):
"""
@@ -943,8 +943,8 @@
Source code for qcodes.instrument_drivers.oxford.IPS120
self.field_setpoint(field_value)
self.to_setpoint()
else:
- print('Switch heater is off, cannot change the field.')
- self.get_all()
+
print('Switch heater is off, cannot change the field.')
+ self.get_all()
[docs] def run_to_field_wait(self, field_value):
"""
@@ -965,8 +965,8 @@
Source code for qcodes.instrument_drivers.oxford.IPS120
sleep(0.5)
else:
print('Switch heater is off, cannot change the field.')
- self.get_all()
- self.local()
+
self.get_all()
+ self.local()
[docs] def heater_off(self):
"""Switch the heater off"""
@@ -975,8 +975,8 @@
Source code for qcodes.instrument_drivers.oxford.IPS120
else:
if self.mode2() == 0:
self.switch_heater(0)
- else:
- print('Magnet is not at rest, cannot switch of the heater!')
+
else:
+ print('Magnet is not at rest, cannot switch of the heater!')
def _get_mode(self):
"""
@@ -1090,8 +1090,8 @@ Source code for qcodes.instrument_drivers.oxford.IPS120
print(self.magnet_current())
print("Heater current: ")
print(self.heater_current())
- print("Mode: ")
- print(self.mode())
+ print("Mode: ")
+ print(self.mode())
diff --git a/_modules/qcodes/instrument_drivers/oxford/kelvinox.html b/_modules/qcodes/instrument_drivers/oxford/kelvinox.html
index 99afc66e7d9..d728bdcd342 100644
--- a/_modules/qcodes/instrument_drivers/oxford/kelvinox.html
+++ b/_modules/qcodes/instrument_drivers/oxford/kelvinox.html
@@ -296,8 +296,8 @@ Source code for qcodes.instrument_drivers.oxford.kelvinox
Reads all implemented parameters from the instrument,
and updates the wrapper.
"""
- log.info('reading all settings from instrument')
- self.snapshot(update=True)
+ log.info('reading all settings from instrument')
+ self.snapshot(update=True)
# Functions
def _execute(self, message):
@@ -337,24 +337,24 @@ Source code for qcodes.instrument_drivers.oxford.kelvinox
a string of the form ``'IGH Version 3.02 (c) OXFORD 1998\\r'``
"""
- log.info('Identify the device')
- return self._execute('V')
+ log.info('Identify the device')
+ return self._execute('V')
[docs] def remote(self):
"""Set control to remote and unlocked"""
-
log.info('Set control to remote and unlocked')
-
self.remote_status(3)
+ log.info('Set control to remote and unlocked')
+ self.remote_status(3)
[docs] def local(self):
"""Set control to local and unlocked"""
-
log.info('Set control to local and unlocked')
-
self.remote_status(2)
+ log.info('Set control to local and unlocked')
+ self.remote_status(2)
[docs] def close(self):
"""Safely close connection"""
log.info('Closing IPS120 connection')
-
self.local()
-
super().close()
+ self.local()
+ super().close()
[docs] def get_idn(self):
"""
@@ -369,8 +369,8 @@
Source code for qcodes.instrument_drivers.oxford.kelvinox
"""
identity = self.identify()
idparts = [identity[24:30], identity[:3], None, identity[15:19]]
-
- return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
+
+ return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
def _get_remote_status(self):
"""
@@ -452,8 +452,8 @@ Source code for qcodes.instrument_drivers.oxford.kelvinox
1 : fixed heater power
2 : temperature control
"""
- log.info('Setting Mix Chamber Power control')
- self._execute('A%i' % mode)
+ log.info('Setting Mix Chamber Power control')
+ self._execute('A%i' % mode)
[docs] def set_mix_chamber_heater_power_range(self, mode):
"""
@@ -463,8 +463,8 @@
Source code for qcodes.instrument_drivers.oxford.kelvinox
4 : 2mW
5 : 20mW
"""
- log.info('Setting Mix Chamber Power range')
- self._execute('E%i' % mode)
+
log.info('Setting Mix Chamber Power range')
+ self._execute('E%i' % mode)
def _set_mix_chamber_temp(self, temperature):
"""
@@ -606,8 +606,8 @@ Source code for qcodes.instrument_drivers.oxford.kelvinox
self.local()
else:
print('Wrong value....')
- else:
- print('Wrong value....')
+ else:
+ print('Wrong value....')
def _get_still_sorb_status(self):
"""Get the the still and sorb status
@@ -705,8 +705,8 @@ Source code for qcodes.instrument_drivers.oxford.kelvinox
log.info('Setting still power')
self._execute('S%i' % P)
- self._get_still_status()
- self.local()
+ self._get_still_status()
+ self.local()
diff --git a/_modules/qcodes/instrument_drivers/oxford/mercuryiPS.html b/_modules/qcodes/instrument_drivers/oxford/mercuryiPS.html
index 63e8f39fed1..647516a11a1 100644
--- a/_modules/qcodes/instrument_drivers/oxford/mercuryiPS.html
+++ b/_modules/qcodes/instrument_drivers/oxford/mercuryiPS.html
@@ -190,11 +190,11 @@ Source code for qcodes.instrument_drivers.oxford.mercuryiPS
self._save_val(value)
return value
except Exception as e:
- e.args = e.args + ('getting {}'.format(self.full_name),)
- raise e
+ e.args = e.args + ('getting {}'.format(self.full_name),)
+ raise e
-[docs] def set(self, setpoint):
-
return self._set(setpoint)
+[docs] def set(self, setpoint):
+ return self._set(setpoint)
[docs]class MercuryiPS(IPInstrument):
@@ -357,16 +357,16 @@
Source code for qcodes.instrument_drivers.oxford.mercuryiPS
self
.connect_message()
[docs] def hold(self):
-
for ax in self.axes:
-
self.parameters[ax.lower() + '_ACTN'].set('HOLD')
+
for ax in self.axes:
+
self.parameters[ax.lower() + '_ACTN'].set('HOLD')
[docs] def rtos(self):
-
for ax in self.axes:
-
self.parameters[ax.lower() + '_ACTN'].set('RTOS')
+
for ax in self.axes:
+ self.parameters[ax.lower() + '_ACTN'].set('RTOS')
[docs] def to_zero(self):
-
for ax in self.axes:
-
self.parameters[ax.lower() + '_ACTN'].set('RTOZ')
+ for ax in self.axes:
+ self.parameters[ax.lower() + '_ACTN'].set('RTOZ')
def _ramp_to_setpoint(self, ax, cmd, setpoint):
self._set_fld(ax, cmd, setpoint)
@@ -537,8 +537,8 @@ Source code for qcodes.instrument_drivers.oxford.mercuryiPS
[docs] def write(self, msg):
rep = self.ask(msg)
self._latest_response = rep
-
if 'INVALID' in rep:
-
print('warning', msg, rep)
+ if 'INVALID' in rep:
+ print('warning', msg, rep)
def _spheretocart(self, sphere):
"""
@@ -560,8 +560,8 @@ Source code for qcodes.instrument_drivers.oxford.mercuryiPS
theta = np.arccos(field[2] / r)
phi = np.arctan2(field[1], field[0])
if phi<0:
- phi = phi+np.pi*2
- return [r, theta, phi]
+ phi = phi+np.pi*2
+ return [r, theta, phi]
diff --git a/_modules/qcodes/instrument_drivers/oxford/triton.html b/_modules/qcodes/instrument_drivers/oxford/triton.html
index dcef2303587..a0672fe1dd1 100644
--- a/_modules/qcodes/instrument_drivers/oxford/triton.html
+++ b/_modules/qcodes/instrument_drivers/oxford/triton.html
@@ -288,8 +288,8 @@ Source code for qcodes.instrument_drivers.oxford.triton
[docs] def get_idn(self):
idstr = self.ask('*IDN?')
idparts = [p.strip() for p in idstr.split(':', 4)][1:]
-
-
return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
+
+ return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
def _get_control_channel(self):
@@ -410,8 +410,8 @@ Source code for qcodes.instrument_drivers.oxford.triton
return None
return float(msg.split('SIG:PRES:')[-1].strip('mB'))*1e-3
- def _recv(self):
- return super()._recv().rstrip()
+ def _recv(self):
+ return super()._recv().rstrip()
diff --git a/_modules/qcodes/instrument_drivers/rigol/DG4000.html b/_modules/qcodes/instrument_drivers/rigol/DG4000.html
index e48d2765ad3..bbf6d67ccdc 100644
--- a/_modules/qcodes/instrument_drivers/rigol/DG4000.html
+++ b/_modules/qcodes/instrument_drivers/rigol/DG4000.html
@@ -174,8 +174,8 @@ Source code for qcodes.instrument_drivers.rigol.DG4000
try:
float(s)
return True
- except ValueError:
- return False
+ except ValueError:
+ return False
[docs]def clean_string(s):
@@ -188,8 +188,8 @@
Source code for qcodes.instrument_drivers.rigol.DG4000
s = s[1:-1]
s = s.lower()
-
- return s
+
+ return s
[docs]def parse_string_output(s):
@@ -203,22 +203,22 @@
Source code for qcodes.instrument_drivers.rigol.DG4000
# If it is a number; parse it
if is_number(s):
return float(s)
-
- return s
+
+ return s
[docs]def parse_single_output(i, s):
""" Used as a partial function to parse output i in string s """
parts = clean_string(s).split(',')
-
-
return parse_string_output(parts[i])
+
+ return parse_string_output(parts[i])
[docs]def parse_multiple_outputs(s):
""" Parse an output such as 'sin,1.5,0,2' and return a parsed array """
parts = clean_string(s).split(',')
-
-
return [parse_string_output(part) for part in parts]
+
+ return [parse_string_output(part) for part in parts]
[docs]class Rigol_DG4000(VisaInstrument):
@@ -752,8 +752,8 @@
Source code for qcodes.instrument_drivers.rigol.DG4000
self.write('DATA VOLATILE,' + string)
else:
- raise Exception('Data length of ' + str(len(data)) +
- ' is not in the range of 1 to 16384')
+
raise Exception('Data length of ' + str(len(data)) +
+ ' is not in the range of 1 to 16384')
diff --git a/_modules/qcodes/instrument_drivers/rohde_schwarz/RTO1000.html b/_modules/qcodes/instrument_drivers/rohde_schwarz/RTO1000.html
index 7448a754c02..61947862d5d 100644
--- a/_modules/qcodes/instrument_drivers/rohde_schwarz/RTO1000.html
+++ b/_modules/qcodes/instrument_drivers/rohde_schwarz/RTO1000.html
@@ -244,8 +244,8 @@ Source code for qcodes.instrument_drivers.rohde_schwarz.RTO1000
self.setpoints = (tuple(np.linspace(t_start, t_stop, no_samples)),)
self._trace_ready = True
- # we must ensure that all this took effect before proceeding
- self.channel._parent.ask('*OPC?')
+ # we must ensure that all this took effect before proceeding
+ self.channel._parent.ask('*OPC?')
[docs] def get(self):
"""
@@ -288,8 +288,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.RTO1000
quant_levels = 253
conv_factor = scale*no_divs/quant_levels
output = conv_factor*int_vals + self.channel.offset()
-
- return output
+
+ return output
[docs]class ScopeChannel(InstrumentChannel):
@@ -437,8 +437,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.RTO1000
def _set_scale(self, value):
self.range._save_val(value*10)
- self._parent.write('CHANnel{}:SCALe {}'.format(self.channum,
- value))
+
self._parent.write('CHANnel{}:SCALe {}'.format(self.channum,
+ value))
[docs]class RTO1000(VisaInstrument):
@@ -721,8 +721,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.RTO1000
source = trans[self.trigger_source.get()]
val = self.ask('TRIGger1:LEVel{}?'.format(source))
-
- return float(val.strip())
+
+ return float(val.strip())
diff --git a/_modules/qcodes/instrument_drivers/rohde_schwarz/SGS100A.html b/_modules/qcodes/instrument_drivers/rohde_schwarz/SGS100A.html
index a2754afbf80..964d67b1422 100644
--- a/_modules/qcodes/instrument_drivers/rohde_schwarz/SGS100A.html
+++ b/_modules/qcodes/instrument_drivers/rohde_schwarz/SGS100A.html
@@ -262,43 +262,43 @@ Source code for qcodes.instrument_drivers.rohde_schwarz.SGS100A
if stat.startswith('0'):
stat = 'Off'
elif stat.startswith('1'):
- stat = 'On'
- return stat
+ stat = 'On'
+ return stat
[docs] def set_status(self, stat):
if stat.upper() in ('ON', 'OFF'):
self.write(':OUTP:STAT %s' % stat)
else:
-
raise ValueError('Unable to set status to %s, ' % stat +
-
'expected "ON" or "OFF"')
+ raise ValueError('Unable to set status to %s, ' % stat +
+ 'expected "ON" or "OFF"')
[docs] def set_IQ_state(self, stat):
if stat.upper() in ('ON', 'OFF'):
self.write(':IQ:STAT %s' % stat)
else:
-
raise ValueError('Unable to set status to %s, ' % stat +
-
'expected "ON" or "OFF"')
+ raise ValueError('Unable to set status to %s, ' % stat +
+ 'expected "ON" or "OFF"')
[docs] def set_pulsemod_state(self, stat):
if stat.upper() in ('ON', 'OFF'):
self.write(':PULM:SOUR EXT')
self.write(':SOUR:PULM:STAT %s' % stat)
else:
-
raise ValueError('Unable to set status to %s,' % stat +
-
'expected "ON" or "OFF"')
+ raise ValueError('Unable to set status to %s,' % stat +
+ 'expected "ON" or "OFF"')
[docs] def set_pulsemod_source(self, source):
if source.upper() in ('INT', 'EXT'):
self.write(':SOUR:PULM:SOUR %s' % source)
else:
-
raise ValueError('Unable to set source to %s,' % source +
-
'expected "INT" or "EXT"')
+ raise ValueError('Unable to set source to %s,' % source +
+ 'expected "INT" or "EXT"')
-[docs] def on(self):
-
self.set('status', 'on')
+
+ self.set('status', 'on')
-[docs] def off(self):
-
self.set('status', 'off')
+
+ self.set('status', 'off')
diff --git a/_modules/qcodes/instrument_drivers/rohde_schwarz/SMR40.html b/_modules/qcodes/instrument_drivers/rohde_schwarz/SMR40.html
index b882f2f1718..eb255ab23aa 100644
--- a/_modules/qcodes/instrument_drivers/rohde_schwarz/SMR40.html
+++ b/_modules/qcodes/instrument_drivers/rohde_schwarz/SMR40.html
@@ -254,8 +254,8 @@ Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
"""
log.info(__name__ + ' : Resetting instrument')
self.write('*RST')
- # TODO: make it printable
- self.get_all()
+ # TODO: make it printable
+ self.get_all()
[docs] def get_all(self):
"""Reads all implemented parameters from the instrument, and updates
@@ -271,8 +271,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
log.info(__name__ + ' : reading all settings from instrument')
# TODO: make it printable
self.frequency.get()
- self.power.get()
- self.status.get()
+
self.power.get()
+ self.status.get()
# Communication functions
[docs] def do_get_frequency(self):
@@ -285,8 +285,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
frequency (float) : frequency in Hz
"""
- log.debug(__name__ + ' : reading frequency from instrument')
- return float(self.ask('SOUR:FREQ?'))
+
log.debug(__name__ + ' : reading frequency from instrument')
+ return float(self.ask('SOUR:FREQ?'))
[docs] def do_set_frequency(self, frequency):
"""Set frequency of device.
@@ -298,8 +298,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
None
"""
- log.debug(__name__ + ' : setting frequency to %s GHz' % frequency)
- self.write('SOUR:FREQ %e' % frequency)
+
log.debug(__name__ + ' : setting frequency to %s GHz' % frequency)
+ self.write('SOUR:FREQ %e' % frequency)
[docs] def do_get_power(self):
"""Get output power from device.
@@ -311,8 +311,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
power (float) : output power in dBm
"""
- log.debug(__name__ + ' : reading power from instrument')
- return float(self.ask('SOUR:POW?'))
+
log.debug(__name__ + ' : reading power from instrument')
+ return float(self.ask('SOUR:POW?'))
[docs] def do_set_power(self, power):
"""Set output power of device.
@@ -324,8 +324,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
None
"""
- log.debug(__name__ + ' : setting power to %s dBm' % power)
- self.write('SOUR:POW %e' % power)
+
log.debug(__name__ + ' : setting power to %s dBm' % power)
+ self.write('SOUR:POW %e' % power)
[docs] def do_get_status(self):
"""Get status from instrument.
@@ -345,8 +345,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
return 'ON'
elif stat == '0\n':
return 'OFF'
- else:
- raise ValueError('Output status not specified : %s' % stat)
+
else:
+ raise ValueError('Output status not specified : %s' % stat)
[docs] def do_set_status(self, status):
"""Set status of instrument.
@@ -362,8 +362,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
if status.upper() in ('ON', 'OFF'):
status = status.upper()
else:
- raise ValueError('set_status(): can only set on or off')
- self.write(':OUTP:STAT %s' % status)
+
raise ValueError('set_status(): can only set on or off')
+ self.write(':OUTP:STAT %s' % status)
[docs] def do_get_status_of_modulation(self):
"""Get status from instrument.
@@ -387,8 +387,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
return 'ON'
elif stat == '0\n':
return 'OFF'
- else:
- raise ValueError('Output status not specified : %s' % stat)
+
else:
+ raise ValueError('Output status not specified : %s' % stat)
[docs] def do_set_status_of_modulation(self, status):
"""Set status of modulation.
@@ -404,8 +404,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
if status.upper() in ('ON', 'OFF'):
status = status.upper()
else:
- raise ValueError('set_status(): can only set on or off')
- self.write(':SOUR:PULM:STAT %s' % status)
+
raise ValueError('set_status(): can only set on or off')
+ self.write(':SOUR:PULM:STAT %s' % status)
[docs] def do_get_status_of_ALC(self):
"""Get status from instrument.
@@ -429,8 +429,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
return 'ON'
elif stat == '0\n':
return 'OFF'
- else:
- raise ValueError('Output status not specified : %s' % stat)
+
else:
+ raise ValueError('Output status not specified : %s' % stat)
[docs] def do_set_status_of_ALC(self, status):
"""Set status of instrument.
@@ -446,8 +446,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
if status.upper() in ('ON', 'OFF'):
status = status.upper()
else:
- raise ValueError('set_status(): can only set on or off')
- self.write(':SOUR:POW:ALC %s' % status)
+
raise ValueError('set_status(): can only set on or off')
+ self.write(':SOUR:POW:ALC %s' % status)
[docs] def do_get_pulse_delay(self):
"""Get output power from device.
@@ -459,8 +459,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
power (float) : output power in dBm
"""
- log.debug(__name__ + ' : reading pulse delay from instrument')
- return float(self.ask('SOUR:PULS:DEL?'))
+
log.debug(__name__ + ' : reading pulse delay from instrument')
+ return float(self.ask('SOUR:PULS:DEL?'))
[docs] def do_set_pulse_delay(self, delay):
"""Set output power of device.
@@ -473,8 +473,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
"""
log.debug(
- __name__ + ' : setting pulse delay to %s seconds' % str(delay))
- self.write('SOUR:PULS:DEL 1us')
+
__name__ + ' : setting pulse delay to %s seconds' % str(delay))
+ self.write('SOUR:PULS:DEL 1us')
# Shortcuts
[docs] def off(self):
@@ -486,8 +486,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
Output:
None
- """
- self.status.set('off')
+
"""
+ self.status.set('off')
[docs] def on(self):
"""Set status to 'on'.
@@ -498,8 +498,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
Output:
None
- """
- self.status.set('on')
+
"""
+ self.status.set('on')
[docs] def off_modulation(self):
"""Set status of modulation to 'off'.
@@ -510,8 +510,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
Output:
None
- """
- self.set_status_of_modulation('off')
+
"""
+ self.set_status_of_modulation('off')
[docs] def on_modulation(self):
"""Set status of modulation to 'on'.
@@ -522,8 +522,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
Output:
None
- """
- self.set_status_of_modulation('on')
+
"""
+ self.set_status_of_modulation('on')
[docs] def set_ext_trig(self):
"""Set to the external trigger mode.
@@ -535,8 +535,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.SMR40
None
"""
- log.debug(__name__ + ' : setting to the external trigger mode')
- self.write('TRIG:PULS:SOUR EXT_TRIG')
+ log.debug(__name__ + ' : setting to the external trigger mode')
+ self.write('TRIG:PULS:SOUR EXT_TRIG')
diff --git a/_modules/qcodes/instrument_drivers/rohde_schwarz/ZNB.html b/_modules/qcodes/instrument_drivers/rohde_schwarz/ZNB.html
index f78c39d11c7..8cf64e91f49 100644
--- a/_modules/qcodes/instrument_drivers/rohde_schwarz/ZNB.html
+++ b/_modules/qcodes/instrument_drivers/rohde_schwarz/ZNB.html
@@ -217,8 +217,8 @@ Source code for qcodes.instrument_drivers.rohde_schwarz.ZNB
# needed to update config of the software parameter on sweep change
# freq setpoints tuple as needs to be hashable for look up
f = tuple(np.linspace(int(start), int(stop), num=npts))
- self.setpoints = ((f,), (f,))
- self.shapes = ((npts,), (npts,))
+ self.setpoints = ((f,), (f,))
+ self.shapes = ((npts,), (npts,))
[docs] def get(self):
if not self._instrument._parent.rf_power():
@@ -249,8 +249,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.ZNB
complex_num = complex(comp[0], comp[1])
mag_array.append(abs(complex_num))
phase_array.append(phase(complex_num))
- self._instrument._parent.cont_meas_on()
- return mag_array, phase_array
+ self._instrument._parent.cont_meas_on()
+ return mag_array, phase_array
[docs]class FrequencySweep(ArrayParameter):
@@ -289,8 +289,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.ZNB
# needed to update config of the software parameter on sweep change
# freq setpoints tuple as needs to be hashable for look up
f = tuple(np.linspace(int(start), int(stop), num=npts))
- self.setpoints = (f,)
- self.shape = (npts,)
+
self.setpoints = (f,)
+ self.shape = (npts,)
[docs] def get(self):
if not self._instrument._parent.rf_power():
@@ -318,8 +318,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.ZNB
log.warning("QCoDeS Dataset does not currently support Complex "
"values. Will discard the imaginary part.")
data = data[0::2] + 1j * data[1::2]
- self._instrument._parent.cont_meas_on()
- return data
+ self._instrument._parent.cont_meas_on()
+ return data
[docs]class ZNBChannel(InstrumentChannel):
@@ -519,8 +519,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.ZNB
start = self.start()
stop = self.stop()
npts = self.npts()
- self.trace.set_sweep(start, stop, npts)
- self.trace_mag_phase.set_sweep(start, stop, npts)
+
self.trace.set_sweep(start, stop, npts)
+ self.trace_mag_phase.set_sweep(start, stop, npts)
[docs]class ZNB(VisaInstrument):
@@ -608,15 +608,15 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.ZNB
[docs] def display_grid(self, rows: int, cols: int):
"""
Display a grid of channels rows by cols
-
"""
-
self.write('DISP:LAY GRID;:DISP:LAY:GRID {},{}'.format(rows, cols))
+
"""
+ self.write('DISP:LAY GRID;:DISP:LAY:GRID {},{}'.format(rows, cols))
[docs] def add_channel(self, vna_parameter: str):
n_channels = len(self.channels)
channel = ZNBChannel(self, vna_parameter, n_channels + 1)
self.channels.append(channel)
-
if n_channels == 0:
-
self.display_single_window()
+ if n_channels == 0:
+ self.display_single_window()
def _set_default_values(self):
for channel in self.channels:
@@ -632,8 +632,8 @@ Source code for qcodes.instrument_drivers.rohde_schwarz.ZNB
self.write('TRIG{}:SEQ:SOUR IMM'.format(n))
self.write('SENS{}:AVER:STAT ON'.format(n))
self.update_display_on()
- self._set_default_values()
- self.rf_off()
+ self._set_default_values()
+ self.rf_off()
[docs] def clear_channels(self):
"""
@@ -644,8 +644,8 @@
Source code for qcodes.instrument_drivers.rohde_schwarz.ZNB
for submodule in self.submodules.values():
if isinstance(submodule, ChannelList):
submodule._channels = []
- submodule._channel_mapping = {}
- submodule._locked = False
+ submodule._channel_mapping = {}
+ submodule._locked = False
diff --git a/_modules/qcodes/instrument_drivers/signal_hound/USB_SA124B.html b/_modules/qcodes/instrument_drivers/signal_hound/USB_SA124B.html
index 762b5670f5d..25efec7f6e0 100644
--- a/_modules/qcodes/instrument_drivers/signal_hound/USB_SA124B.html
+++ b/_modules/qcodes/instrument_drivers/signal_hound/USB_SA124B.html
@@ -309,8 +309,8 @@ Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
print
('Initialized SignalHound in %.2fs' % (t1-t0))
[docs] @classmethod
-
def default_server_name(cls, **kwargs):
-
return 'USB'
+
def default_server_name(cls, **kwargs):
+ return 'USB'
[docs] def openDevice(self):
self.log.info('Opening Device')
@@ -327,8 +327,8 @@
Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
raise ValueError('Could not open device due to unknown '
'reason! Error = %d' % ret)
- self.devOpen = True
- self.get('device_type')
+
self.devOpen = True
+ self.get('device_type')
[docs] def closeDevice(self):
self.log.info('Closing Device with handle num: ',
@@ -344,8 +344,8 @@
Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
if ret != self.saStatus['saNoError']:
raise ValueError('Error closing device!')
print('Closed Device with handle num: ', self.deviceHandle.value)
- self.devOpen = False
- self.running(False)
+
self.devOpen = False
+ self.running(False)
[docs] def abort(self):
self.log.info('Stopping acquisition')
@@ -359,8 +359,8 @@
Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
elif err == self.saStatus['saDeviceNotConfiguredErr']:
raise IOError('Device was already idle! Did you call abort '
'without ever calling initiate()?')
- else:
- raise IOError('Unknown error setting abort! Error = %s' % err)
+
else:
+ raise IOError('Unknown error setting abort! Error = %s' % err)
[docs] def preset(self):
self.log.warning('Performing hardware-reset of device!')
@@ -372,8 +372,8 @@
Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
self.log.info('Call to preset succeeded.')
elif err == self.saStatus['saDeviceNotOpenErr']:
raise IOError('Device not open!')
- else:
- raise IOError('Unknown error calling preset! Error = %s' % err)
+
else:
+ raise IOError('Unknown error calling preset! Error = %s' % err)
def _do_get_device_type(self):
self.log.info('Querying device for model information')
@@ -461,8 +461,8 @@ Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
self.check_for_error(err)
# else:
# raise IOError('Unknown error setting initiate! Error = %s' % err)
-
- return
+
+ return
[docs] def QuerySweep(self):
"""
@@ -486,8 +486,8 @@
Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
else:
raise IOError('Unknown error!')
- info = [sweep_len.value, start_freq.value, stepsize.value]
- return info
+
info = [sweep_len.value, start_freq.value, stepsize.value]
+ return info
+ return
[docs] def sweep(self):
"""
@@ -622,8 +622,8 @@
Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
# note if used in averaged mode (set in config) datamin=datamax
datamin = np.array([minarr[elem] for elem in range(sweep_len)])
datamax = np.array([minarr[elem] for elem in range(sweep_len)])
-
- return np.array([freq_points, datamin, datamax])
+
+ return np.array([freq_points, datamin, datamax])
[docs] def get_power_at_freq(self, Navg=1):
'''
@@ -636,8 +636,8 @@
Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
data = self.sweep()
max_power = np.max(data[1][:])
poweratfreq += max_power
- self.power(poweratfreq / Navg)
- return self.power()
+
self.power(poweratfreq / Navg)
+ return self.power()
[docs] def get_spectrum(self, Navg=1):
"""
@@ -650,26 +650,26 @@
Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
data = self.sweep()
data_spec[:] += data[1][:]
data_spec[:] = data_spec[:] / Navg
- sweep_points = data[0][:]
- return np.array([sweep_points, data_spec])
+
sweep_points = data[0][:]
+ return np.array([sweep_points, data_spec])
[docs] def prepare_for_measurement(self):
self.set('device_mode', 'sweeping')
self.configure()
-
self.initialisation()
-
return
+ self.initialisation()
+ return
[docs] def safe_reload(self):
-
self.closeDevice()
-
self.reload()
+ self.closeDevice()
+ self.reload()
[docs] def check_for_error(self, err):
if err != self.saStatus['saNoError']:
err_msg = self.saStatus_inverted[err]
if err > 0:
print('Warning:', err_msg)
-
else:
-
raise IOError(err_msg)
+ else:
+ raise IOError(err_msg)
[docs]class constants:
@@ -727,8 +727,8 @@
Source code for qcodes.instrument_drivers.signal_hound.USB_SA124B
sa_AUDIO_LSB = 0x3
sa_AUDIO_CW = 0x4
- TG_THRU_0DB = 0x1
- TG_THRU_20DB = 0x2
+
TG_THRU_0DB = 0x1
+ TG_THRU_20DB = 0x2
diff --git a/_modules/qcodes/instrument_drivers/stanford_research/SG384.html b/_modules/qcodes/instrument_drivers/stanford_research/SG384.html
index a3a9b437d8a..14df546361f 100644
--- a/_modules/qcodes/instrument_drivers/stanford_research/SG384.html
+++ b/_modules/qcodes/instrument_drivers/stanford_research/SG384.html
@@ -313,8 +313,8 @@ Source code for qcodes.instrument_drivers.stanford_research.SG384
'Sweep': 3,
'Pulse': 4,
'Blank': 5,
- 'IQ': 6})
- self.connect_message()
+ 'IQ': 6})
+ self.connect_message()
diff --git a/_modules/qcodes/instrument_drivers/stanford_research/SIM928.html b/_modules/qcodes/instrument_drivers/stanford_research/SIM928.html
index 3cdc48dfb3c..d583b21dfe8 100644
--- a/_modules/qcodes/instrument_drivers/stanford_research/SIM928.html
+++ b/_modules/qcodes/instrument_drivers/stanford_research/SIM928.html
@@ -250,8 +250,8 @@ Source code for qcodes.instrument_drivers.stanford_research.SIM928
idstr = self.ask_module(i, '*IDN?')
idparts = [p.strip() for p in idstr.split(',', 3)]
if len(idparts) < 4:
- idparts += [None] * (4 - len(idparts))
- return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
+ idparts += [None] * (4 - len(idparts))
+ return dict(zip(('vendor', 'model', 'serial', 'firmware'), idparts))
[docs] def find_modules(self):
"""
@@ -267,8 +267,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
for i in range(1, 10):
if CTCR & 1 != 0 and self.get_module_idn(i)['model'] == 'SIM928':
modules.append(i)
- CTCR >>= 1
- return modules
+
CTCR >>= 1
+ return modules
[docs] def ask_module(self, i, cmd):
"""
@@ -295,8 +295,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
self.visa_handle.read()
if msg[:2] != '#3':
- raise RuntimeError('Unexpected format of answer: {}'.format(msg))
- return msg[5:]
+
raise RuntimeError('Unexpected format of answer: {}'.format(msg))
+ return msg[5:]
[docs] def write_module(self, i, cmd):
"""
@@ -308,8 +308,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
cmd (str): The VISA command string.
"""
if not isinstance(i, int):
- i = self.module_nr[i]
- self.write('SNDT {},"{}"'.format(i, cmd))
+
i = self.module_nr[i]
+ self.write('SNDT {},"{}"'.format(i, cmd))
[docs] def set_voltage(self, i, voltage):
"""
@@ -325,8 +325,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
i = self.module_nr[i]
else:
name = self.slot_names.get(i, i)
- self.write_module(i, 'VOLT {:.3f}'.format(voltage))
- self.parameters['volt_{}'.format(name)]._save_val(voltage)
+
self.write_module(i, 'VOLT {:.3f}'.format(voltage))
+ self.parameters['volt_{}'.format(name)]._save_val(voltage)
[docs] def get_voltage(self, i):
"""
@@ -340,8 +340,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
The current voltage of module ``i`` as a ``float``.
"""
if not isinstance(i, int):
- i = self.module_nr[i]
- return float(self.ask_module(i, 'VOLT?'))
+
i = self.module_nr[i]
+ return float(self.ask_module(i, 'VOLT?'))
[docs] def set_smooth(self, voltagedict, equitime=False):
"""
@@ -409,8 +409,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
for voltages in intermediate:
for i in voltages:
- self.set_voltage(i, voltages[i])
- time.sleep(self.smooth_timestep())
+
self.set_voltage(i, voltages[i])
+ time.sleep(self.smooth_timestep())
[docs] def get_module_status(self, i):
"""
@@ -427,8 +427,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
"""
stdevent = self.ask_module(i, '*ESR?')
commerr = self.ask_module(i, 'CESR?')
- overload = self.ask_module(i, 'OVSR?')
- return stdevent, commerr, overload
+
overload = self.ask_module(i, 'OVSR?')
+ return stdevent, commerr, overload
[docs] def reset_module(self, i):
"""
@@ -444,8 +444,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
of the module to reset.
"""
if not isinstance(i, int):
- i = self.module_nr[i]
- self.write('SRST {}'.format(i))
+
i = self.module_nr[i]
+ self.write('SRST {}'.format(i))
[docs] def check_module_errors(self, i, raiseexc=True):
@@ -534,8 +534,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
if raiseexc:
if len(errors) != 0:
- raise Exception(' '.join(errors + warnings))
- return errors + warnings
+
raise Exception(' '.join(errors + warnings))
+ return errors + warnings
[docs] @staticmethod
def byte_to_bits(x):
@@ -555,8 +555,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SIM928
bits.append(True)
else:
bits.append(False)
- x >>= 1
- return bits
+ x >>= 1
+ return bits
diff --git a/_modules/qcodes/instrument_drivers/stanford_research/SR560.html b/_modules/qcodes/instrument_drivers/stanford_research/SR560.html
index 7b09f07dcb6..e5096b08992 100644
--- a/_modules/qcodes/instrument_drivers/stanford_research/SR560.html
+++ b/_modules/qcodes/instrument_drivers/stanford_research/SR560.html
@@ -217,8 +217,8 @@ Source code for qcodes.instrument_drivers.stanford_research.SR560
volt_amp *= -1
value = (volt, volt_amp)
- self._save_val(value)
- return value
+ self._save_val(value)
+ return value
[docs]class SR560(Instrument):
@@ -280,8 +280,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SR560
serial = None
firmware = None
- return {'vendor': vendor, 'model': model,
- 'serial': serial, 'firmware': firmware}
+ return {'vendor': vendor, 'model': model,
+ 'serial': serial, 'firmware': firmware}
diff --git a/_modules/qcodes/instrument_drivers/stanford_research/SR830.html b/_modules/qcodes/instrument_drivers/stanford_research/SR830.html
index 82d4eeff9d3..66bd9124ba3 100644
--- a/_modules/qcodes/instrument_drivers/stanford_research/SR830.html
+++ b/_modules/qcodes/instrument_drivers/stanford_research/SR830.html
@@ -246,8 +246,8 @@ Source code for qcodes.instrument_drivers.stanford_research.SR830
if self.channel == 1:
self._instrument._buffer1_ready = True
- else:
- self._instrument._buffer2_ready = True
+ else:
+ self._instrument._buffer2_ready = True
[docs] def get(self):
"""
@@ -274,8 +274,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SR830
realdata = np.fromstring(rawdata, dtype='<i2')
numbers = realdata[::2]*2.0**(realdata[1::2]-124)
if self.shape[0] != N:
- raise RuntimeError("SR830 got {} points in buffer expected {}".format(N, self.shape[0]))
- return numbers
+ raise RuntimeError("SR830 got {} points in buffer expected {}".format(N, self.shape[0]))
+ return numbers
[docs]class SR830(VisaInstrument):
@@ -742,8 +742,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SR830
def _set_sensitivity(self, s):
if self.input_config() in ['a', 'a-b']:
return self._VOLT_TO_N[s]
- else:
- return self._CURR_TO_N[s]
+
else:
+ return self._CURR_TO_N[s]
diff --git a/_modules/qcodes/instrument_drivers/stanford_research/SR860.html b/_modules/qcodes/instrument_drivers/stanford_research/SR860.html
index 10fcb0d5a6a..a4f5b554d44 100644
--- a/_modules/qcodes/instrument_drivers/stanford_research/SR860.html
+++ b/_modules/qcodes/instrument_drivers/stanford_research/SR860.html
@@ -170,8 +170,8 @@ Source code for qcodes.instrument_drivers.stanford_research.SR860
"""
The SR860 instrument is almost equal to the SR865, except for the max frequency
"""
- def __init__(self, name: str, address: str, reset: bool=False, **kwargs: str) ->None:
- super().__init__(name, address, max_frequency=5E3, reset=reset, **kwargs)
+ def __init__(self, name: str, address: str, reset: bool=False, **kwargs: str) ->None:
+ super().__init__(name, address, max_frequency=5E3, reset=reset, **kwargs)
diff --git a/_modules/qcodes/instrument_drivers/stanford_research/SR865.html b/_modules/qcodes/instrument_drivers/stanford_research/SR865.html
index 45056831bd6..ba0f3f10473 100644
--- a/_modules/qcodes/instrument_drivers/stanford_research/SR865.html
+++ b/_modules/qcodes/instrument_drivers/stanford_research/SR865.html
@@ -170,8 +170,8 @@ Source code for qcodes.instrument_drivers.stanford_research.SR865
"""
The SR865 instrument is almost equal to the SR860, except for the max frequency
"""
- def __init__(self, name: str, address: str, reset: bool=False, **kwargs: str) ->None:
- super().__init__(name, address, max_frequency=4E6, reset=reset, **kwargs)
+ def __init__(self, name: str, address: str, reset: bool=False, **kwargs: str) ->None:
+ super().__init__(name, address, max_frequency=4E6, reset=reset, **kwargs)
diff --git a/_modules/qcodes/instrument_drivers/stanford_research/SR86x.html b/_modules/qcodes/instrument_drivers/stanford_research/SR86x.html
index ccbbdfe4977..cf33a3d2984 100644
--- a/_modules/qcodes/instrument_drivers/stanford_research/SR86x.html
+++ b/_modules/qcodes/instrument_drivers/stanford_research/SR86x.html
@@ -216,8 +216,8 @@ Source code for qcodes.instrument_drivers.stanford_research.SR86x
self.shape = (data_len,)
self.setpoint_units = ('',)
self.setpoint_names = ('sample_nr',)
- self.setpoint_labels = ('Sample number',)
- self.setpoints = (tuple(np.arange(0, data_len)),)
+ self.setpoint_labels = ('Sample number',)
+ self.setpoints = (tuple(np.arange(0, data_len)),)
[docs] def get_raw(self) ->np.ndarray:
"""
@@ -227,8 +227,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SR86x
err_str = "Cannot return data for parameter {}. Please prepare for ".format(self.name)
err_str = err_str + "readout by calling 'get_capture_data' with appropriate configuration settings"
raise ValueError(err_str)
-
- return self._capture_data
+
+ return self._capture_data
[docs]class SR86xBuffer(InstrumentChannel):
@@ -363,14 +363,14 @@
Source code for qcodes.instrument_drivers.stanford_research.SR86x
if trigger_mode not in ["IMM", "TRIG", "SAMP"]:
raise ValueError("The trigger mode needs to be either 'IMM', 'TRIG' or 'SAMP'")
- cmd_str = "CAPTURESTART {},{}".format(acquisition_mode, trigger_mode)
- self.write(cmd_str)
+
cmd_str = "CAPTURESTART {},{}".format(acquisition_mode, trigger_mode)
+ self.write(cmd_str)
[docs] def stop_capture(self):
"""
Stop a capture
-
"""
-
self.write("CAPTURESTOP")
+ """
+ self.write("CAPTURESTOP")
[docs] def get_capture_data(self, sample_count: int) -> dict:
"""
@@ -404,8 +404,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SR86x
for capture_variable in capture_variables:
buffer_parameter = getattr(self, capture_variable)
buffer_parameter.prepare_readout(data[capture_variable])
-
- return data
+
+ return data
[docs] def capture_samples(self, sample_count: int) ->dict:
"""
@@ -424,8 +424,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SR86x
self.start_capture("CONT", "IMM")
time.sleep(capture_time)
self.stop_capture()
-
- return self.get_capture_data(sample_count)
+
+ return self.get_capture_data(sample_count)
[docs]class SR86x(VisaInstrument):
@@ -731,8 +731,8 @@
Source code for qcodes.instrument_drivers.stanford_research.SR86x
def _set_sensitivity(self, s):
if self.signal_input() == 'voltage':
return self._VOLT_TO_N[s]
- else:
- return self._CURR_TO_N[s]
+
else:
+ return self._CURR_TO_N[s]
diff --git a/_modules/qcodes/instrument_drivers/tektronix/AWG5014.html b/_modules/qcodes/instrument_drivers/tektronix/AWG5014.html
index 5b5a739d74f..0b148efe0f2 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/AWG5014.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/AWG5014.html
@@ -180,8 +180,8 @@ Source code for qcodes.instrument_drivers.tektronix.AWG5014
log
= logging.getLogger(__name__)
-
[docs]def parsestr(v):
-
return v.strip().strip('"')
+
+
return v.strip().strip('"')
[docs]class Tektronix_AWG5014(VisaInstrument):
@@ -561,8 +561,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
[docs] def newlinestripper(self, string):
if string.endswith('\n'):
return string[:-1]
-
else:
-
return string
+
else:
+
return string
def _tek_outofrange_get_parser(self, string):
val = float(string)
@@ -591,8 +591,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
Raises:
DeprecationWarning
"""
- warnings.warn("Deprecated! Use snapshot(update=update) directly")
- return self.snapshot(update=update)
+
warnings.warn("Deprecated! Use snapshot(update=update) directly")
+ return self.snapshot(update=update)
[docs] def get_state(self):
"""
@@ -613,12 +613,12 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
elif state.startswith('2'):
return 'Running'
else:
- raise ValueError(__name__ + (' : AWG in undefined ' +
- 'state "{}"').format(state))
+
raise ValueError(__name__ + (' : AWG in undefined ' +
+ 'state "{}"').format(state))
[docs] def start(self):
-
"""Convenience function, identical to self.run()"""
-
return self.run()
+ """Convenience function, identical to self.run()"""
+ return self.run()
[docs] def run(self):
"""
@@ -630,19 +630,19 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
Returns:
The output of self.get_state()
"""
- self.write('AWGControl:RUN')
- return self.get_state()
+
self.write('AWGControl:RUN')
+ return self.get_state()
[docs] def stop(self):
-
"""This command stops the output of a waveform or a sequence."""
-
self.write('AWGControl:STOP')
+ """This command stops the output of a waveform or a sequence."""
+ self.write('AWGControl:STOP')
[docs] def force_trigger(self):
"""
This command generates a trigger event. This is equivalent to
pressing the Force Trigger button on front panel.
-
"""
-
self.write('*TRG')
+ """
+ self.write('*TRG')
[docs] def get_folder_contents(self, print_contents=True):
"""
@@ -661,8 +661,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
print('Current folder:', self.get_current_folder_name())
print(contents
.replace(',"$', '\n$').replace('","', '\n')
- .replace(',', '\t'))
- return contents
+
.replace(',', '\t'))
+ return contents
[docs] def get_current_folder_name(self):
"""
@@ -673,8 +673,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
Returns:
str: A string with the full path of the current folder.
- """
- return self.ask('MMEMory:CDIRectory?')
+
"""
+ return self.ask('MMEMory:CDIRectory?')
[docs] def set_current_folder_name(self, file_path):
"""
@@ -691,20 +691,20 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
- int: The number of bytes written,
- enum 'Statuscode': whether the write was succesful
"""
- writecmd = 'MMEMory:CDIRectory "{}"'
- return self.visa_handle.write(writecmd.format(file_path))
+
writecmd = 'MMEMory:CDIRectory "{}"'
+ return self.visa_handle.write(writecmd.format(file_path))
[docs] def change_folder(self, folder):
"""Duplicate of self.set_current_folder_name"""
-
writecmd = r'MMEMory:CDIRectory "{}"'
-
return self.visa_handle.write(writecmd.format(folder))
+ writecmd = r'MMEMory:CDIRectory "{}"'
+ return self.visa_handle.write(writecmd.format(folder))
[docs] def goto_root(self):
"""
Set the current directory of the file system on the arbitrary
waveform generator to C: (the 'root' location in Windows).
-
"""
-
self.write('MMEMory:CDIRectory "c:\\.."')
+ """
+ self.write('MMEMory:CDIRectory "c:\\.."')
[docs] def create_and_goto_dir(self, folder):
"""
@@ -734,21 +734,21 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
else:
self.write('MMEMory:MDIRectory "%s"' % folder)
self.write('MMEMory:CDIRectory "%s"' % folder)
-
- return self.get_folder_contents()
+
+ return self.get_folder_contents()
[docs] def all_channels_on(self):
"""
Set the state of all channels to be ON. Note: only channels with
defined waveforms can be ON.
"""
-
for i in range(1, self.num_channels+1):
-
self.set('ch{}_state'.format(i), 1)
+ for i in range(1, self.num_channels+1):
+ self.set('ch{}_state'.format(i), 1)
[docs] def all_channels_off(self):
"""Set the state of all channels to be OFF."""
-
for i in range(1, self.num_channels+1):
-
self.set('ch{}_state'.format(i), 0)
+ for i in range(1, self.num_channels+1):
+ self.set('ch{}_state'.format(i), 0)
#####################
# Sequences section #
@@ -758,8 +758,8 @@ Source code for qcodes.instrument_drivers.tektronix.AWG5014
"""
This command generates a trigger event. Equivalent to
self.force_trigger.
- """
- self.write('TRIGger:IMMediate')
+ """
+ self.write('TRIGger:IMMediate')
[docs] def force_event(self):
"""
@@ -767,8 +767,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
event when the sequence is waiting for an event jump. This is
equivalent to pressing the Force Event button on the front panel of the
instrument.
- """
- self.write('EVENt:IMMediate')
+
"""
+ self.write('EVENt:IMMediate')
[docs] def set_sqel_event_target_index(self, element_no, index):
"""
@@ -781,8 +781,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
element_no (int): The sequence element number
index (int): The index to set the target to
"""
- self.write('SEQuence:' +
- 'ELEMent{}:JTARGet:INDex {}'.format(element_no, index))
+
self.write('SEQuence:' +
+ 'ELEMent{}:JTARGet:INDex {}'.format(element_no, index))
[docs] def set_sqel_goto_target_index(self, element_no, goto_to_index_no):
"""
@@ -804,8 +804,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
"""
self.write('SEQuence:' +
- 'ELEMent{}:GOTO:INDex {}'.format(element_no,
- goto_to_index_no))
+
'ELEMent{}:GOTO:INDex {}'.format(element_no,
+ goto_to_index_no))
[docs] def set_sqel_goto_state(self, element_no, goto_state):
"""
@@ -822,8 +822,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
log.warning(('{} not recognized as a valid goto' +
' state. Setting to 0 (OFF).').format(goto_state))
goto_state = 0
- self.write('SEQuence:ELEMent{}:GOTO:STATe {}'.format(element_no,
- int(goto_state)))
+
self.write('SEQuence:ELEMent{}:GOTO:STATe {}'.format(element_no,
+ int(goto_state)))
[docs] def set_sqel_loopcnt_to_inf(self, element_no, state=1):
"""
@@ -843,8 +843,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
' state. Setting to 0 (OFF).').format(state))
state = 0
- self.write('SEQuence:ELEMent{}:LOOP:INFinite {}'.format(element_no,
- int(state)))
+
self.write('SEQuence:ELEMent{}:LOOP:INFinite {}'.format(element_no,
+ int(state)))
[docs] def get_sqel_loopcnt(self, element_no=1):
"""
@@ -854,8 +854,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
Args:
element_no (int): The sequence element number. Default: 1.
- """
- return self.ask('SEQuence:ELEMent{}:LOOP:COUNt?'.format(element_no))
+
"""
+ return self.ask('SEQuence:ELEMent{}:LOOP:COUNt?'.format(element_no))
[docs] def set_sqel_loopcnt(self, loopcount, element_no=1):
"""
@@ -867,8 +867,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
The maximal possible number is 65536, beyond that: infinity.
element_no (int): The sequence element number. Default: 1.
"""
- self.write('SEQuence:ELEMent{}:LOOP:COUNt {}'.format(element_no,
- loopcount))
+
self.write('SEQuence:ELEMent{}:LOOP:COUNt {}'.format(element_no,
+ loopcount))
+ waveform_name))
+ channel))
[docs] def set_sqel_trigger_wait(self, element_no, state=1):
"""
@@ -918,8 +918,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
str: The current state (after setting it).
"""
- self.write('SEQuence:ELEMent{}:TWAit {}'.format(element_no, state))
- return self.get_sqel_trigger_wait(element_no)
+
self.write('SEQuence:ELEMent{}:TWAit {}'.format(element_no, state))
+ return self.get_sqel_trigger_wait(element_no)
[docs] def get_sqel_trigger_wait(self, element_no):
"""
@@ -935,13 +935,13 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
Returns:
str: The current state. Example: '1'.
- """
- return self.ask('SEQuence:ELEMent{}:TWAit?'.format(element_no))
+
"""
+ return self.ask('SEQuence:ELEMent{}:TWAit?'.format(element_no))
[docs] def set_sqel_event_jump_target_index(self, element_no, jtar_index_no):
"""Duplicate of set_sqel_event_target_index"""
-
self.write('SEQuence:ELEMent{}:JTARget:INDex {}'.format(element_no,
-
jtar_index_no))
+ self.write('SEQuence:ELEMent{}:JTARget:INDex {}'.format(element_no,
+ jtar_index_no))
[docs] def set_sqel_event_jump_type(self, element_no, jtar_state):
"""
@@ -960,8 +960,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
jtar_state (str): The jump target type. Must be either 'INDEX',
'NEXT', or 'OFF'.
"""
- self.write('SEQuence:ELEMent{}:JTARget:TYPE {}'.format(element_no,
- jtar_state))
+
self.write('SEQuence:ELEMent{}:JTARget:TYPE {}'.format(element_no,
+ jtar_state))
[docs] def get_sq_mode(self):
"""
@@ -972,8 +972,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
Returns:
str: Either 'HARD' or 'SOFT' indicating that the instrument is in\
either hardware or software sequencer mode.
- """
- return self.ask('AWGControl:SEQuence:TYPE?')
+
"""
+ return self.ask('AWGControl:SEQuence:TYPE?')
######################
# AWG file functions #
@@ -1059,8 +1059,8 @@ Source code for qcodes.instrument_drivers.tektronix.AWG5014
else 2), # Sync | Async
'RUN_MODE': 4, # Continuous | Triggered | Gated | Sequence
'RUN_STATE': 0, # On | Off
- }
- return AWG_sequence_cfg
+ }
+ return AWG_sequence_cfg
[docs] def generate_channel_cfg(self):
"""
@@ -1184,8 +1184,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
if addinputs[chan - 1] is not None:
AWG_channel_cfg.update({'EXTERNAL_ADD_{}'.format(chan):
addinputs[chan - 1]})
-
- return AWG_channel_cfg
+
+ return AWG_channel_cfg
[docs] def generate_awg_file(self,
packed_waveforms, wfname_l, nrep, trig_wait,
@@ -1325,8 +1325,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
kk += 1
awg_file = (head_str.getvalue() + ch_record_str.getvalue() +
- wf_record_str.getvalue() + seq_record_str.getvalue())
- return awg_file
+
wf_record_str.getvalue() + seq_record_str.getvalue())
+ return awg_file
[docs] def send_awg_file(self, filename, awg_file, verbose=False):
"""
@@ -1349,8 +1349,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
name_str = 'MMEMory:DATA "{}",'.format(filename).encode('ASCII')
size_str = ('#' + str(len(str(len(awg_file)))) +
str(len(awg_file))).encode('ASCII')
- mes = name_str + size_str + awg_file
- self.visa_handle.write_raw(mes)
+
mes = name_str + size_str + awg_file
+ self.visa_handle.write_raw(mes)
[docs] def load_awg_file(self, filename):
"""
@@ -1364,8 +1364,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
s = 'AWGControl:SREStore "{}"'.format(filename)
log.debug('Loading awg file using {}'.format(s))
self.visa_handle.write_raw(s)
- # we must update the appropriate parameter(s) for the sequence
- self.sequence_length.set(self.sequence_length.get())
+
# we must update the appropriate parameter(s) for the sequence
+ self.sequence_length.set(self.sequence_length.get())
[docs] def make_send_and_load_awg_file(self, waveforms, m1s, m2s,
nreps, trig_waits,
@@ -1463,8 +1463,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
currentdir = self.visa_handle.query('MMEMory:CDIRectory?')
currentdir = currentdir.replace('"', '')
currentdir = currentdir.replace('\n', '\\')
- loadfrom = '{}{}'.format(currentdir, filename)
- self.load_awg_file(loadfrom)
+
loadfrom = '{}{}'.format(currentdir, filename)
+ self.load_awg_file(loadfrom)
[docs] def make_and_save_awg_file(self, waveforms, m1s, m2s,
nreps, trig_waits,
@@ -1552,8 +1552,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
jump_tos, channel_cfg,
preservechannelsettings=preservechannelsettings)
- with open(filename, 'wb') as fid:
- fid.write(awg_file)
+
with open(filename, 'wb') as fid:
+ fid.write(awg_file)
[docs] def get_error(self):
"""
@@ -1563,8 +1563,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
Returns:
str: String containing the error/event number, the error/event\
description.
- """
- return self.ask('SYSTEM:ERRor:NEXT?')
+
"""
+ return self.ask('SYSTEM:ERRor:NEXT?')
+ return packed_wf
###########################
# Waveform file functions #
@@ -1653,12 +1653,12 @@ Source code for qcodes.instrument_drivers.tektronix.AWG5014
waveform memory, it (they) is (are) unloaded. If the RUN state
of the instrument is ON, the state is turned OFF. If the
channel is on, it will be switched off.
- """
- self.write('WLISt:WAVeform:DELete ALL')
+ """
+ self.write('WLISt:WAVeform:DELete ALL')
[docs] def get_filenames(self):
-
"""Duplicate of self.get_folder_contents"""
-
return self.ask('MMEMory:CATalog?')
+ """Duplicate of self.get_folder_contents"""
+ return self.ask('MMEMory:CATalog?')
[docs] def send_DC_pulse(self, DC_channel_number, set_level, length):
"""
@@ -1678,8 +1678,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
restore = chandcs[DC_channel_number].get()
chandcs[DC_channel_number].set(set_level)
- sleep(length)
- chandcs[DC_channel_number].set(restore)
+
sleep(length)
+ chandcs[DC_channel_number].set(restore)
[docs] def is_awg_ready(self):
"""
@@ -1694,8 +1694,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
except Exception as e:
log.warning(e)
log.warning('AWG is not ready')
- self.visa_handle.read()
- return True
+
self.visa_handle.read()
+ return True
+ self.visa_handle.write_raw(mes)
[docs] def clear_message_queue(self, verbose=False):
"""
@@ -1778,8 +1778,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG5014
if verbose:
print(message)
except VisaIOError:
- gotexception = True
- self.visa_handle.timeout = original_timeout
+ gotexception = True
+ self.visa_handle.timeout = original_timeout
diff --git a/_modules/qcodes/instrument_drivers/tektronix/AWG520.html b/_modules/qcodes/instrument_drivers/tektronix/AWG520.html
index e899807ec57..b07add2a7b2 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/AWG520.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/AWG520.html
@@ -346,30 +346,30 @@ Source code for qcodes.instrument_drivers.tektronix.AWG520
elif state.startswith('2'):
return 'Running'
else:
- logging.error(__name__ + ' : AWG in undefined state')
- return 'error'
+ logging.error(__name__ + ' : AWG in undefined state')
+ return 'error'
[docs] def start(self):
-
self.visa_handle.write('AWGC:RUN')
-
return
+ self.visa_handle.write('AWGC:RUN')
+ return
-[docs] def stop(self):
-
self.visa_handle.write('AWGC:STOP')
+
+ self.visa_handle.write('AWGC:STOP')
-[docs] def get_folder_contents(self):
-
return self.visa_handle.ask('mmem:cat?')
+[docs] def get_folder_contents(self):
+ return self.visa_handle.ask('mmem:cat?')
-[docs] def get_current_folder_name(self):
-
return self.visa_handle.ask('mmem:cdir?')
+[docs] def get_current_folder_name(self):
+ return self.visa_handle.ask('mmem:cdir?')
-[docs] def set_current_folder_name(self, file_path):
-
self.visa_handle.write('mmem:cdir "%s"' % file_path)
+[docs] def set_current_folder_name(self, file_path):
+ self.visa_handle.write('mmem:cdir "%s"' % file_path)
-[docs] def change_folder(self, dir):
-
self.visa_handle.write('mmem:cdir "%s"' % dir)
+[docs] def change_folder(self, dir):
+ self.visa_handle.write('mmem:cdir "%s"' % dir)
-[docs] def goto_root(self):
-
self.visa_handle.write('mmem:cdir')
+
+ self.visa_handle.write('mmem:cdir')
[docs] def make_directory(self, dir, root):
'''
@@ -379,14 +379,14 @@
Source code for qcodes.instrument_drivers.tektronix.AWG520
if root:
self.goto_root()
self.visa_handle.write('MMEMory:MDIRectory "{}"'.format(dir))
- else:
- self.visa_handle.write('MMEMory:MDIRectory "{}"'.format(dir))
+
else:
+ self.visa_handle.write('MMEMory:MDIRectory "{}"'.format(dir))
[docs] def get_all(self, update=True):
# TODO: fix bug in snapshot where it tries to get setable only param
# return self.snapshot(update=update)
-
-
return self.snapshot(update=False)
+
+ return self.snapshot(update=False)
+ self.visa_handle.write('SOUR2:FUNC:USER ""')
[docs] def force_trigger(self):
'''
forces a trigger event (used for wait_trigger option in sequences)
Ron
-
'''
-
return self.visa_handle.write('TRIG:SEQ:IMM')
+ '''
+ return self.visa_handle.write('TRIG:SEQ:IMM')
[docs] def force_logicjump(self):
'''
@@ -418,8 +418,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG520
note: jump_logic events&mode have to be set properly!
Ron
- '''
- return self.visa_handle.write('AWGC:EVEN:SEQ:IMM')
+
'''
+ return self.visa_handle.write('AWGC:EVEN:SEQ:IMM')
[docs] def set_jumpmode(self, mode):
'''
@@ -430,16 +430,16 @@
Source code for qcodes.instrument_drivers.tektronix.AWG520
note: jump_logic events&mode have to be set properly!
Ron
- '''
- return self.visa_handle.write('AWGC:ENH:SEQ:JMOD %s' % mode)
+
'''
+ return self.visa_handle.write('AWGC:ENH:SEQ:JMOD %s' % mode)
[docs] def get_jumpmode(self, mode):
'''
get the jump mode for jump logic events
Ron
-
'''
-
return self.visa_handle.ask('AWGC:ENH:SEQ:JMOD?')
+ '''
+ return self.visa_handle.ask('AWGC:ENH:SEQ:JMOD?')
def _do_get_numpoints(self):
'''
@@ -498,8 +498,8 @@ Source code for qcodes.instrument_drivers.tektronix.AWG520
time.sleep(sleeptime)
print('.')
self.get_state()
- print('Loading file took %.2fs' % (time.time()-t0))
- return
+ print('Loading file took %.2fs' % (time.time()-t0))
+ return
def _do_set_filename(self, name, channel):
'''
@@ -593,11 +593,11 @@ Source code for qcodes.instrument_drivers.tektronix.AWG520
# Ask for string with filenames
[docs] def get_filenames(self):
-
logging.debug(__name__ + ' : Read filenames from instrument')
-
return self.visa_handle.ask('MMEM:CAT? "MAIN"')
+
logging.debug(__name__ + ' : Read filenames from instrument')
+ return self.visa_handle.ask('MMEM:CAT? "MAIN"')
-[docs] def return_self(self):
-
return self
+
+ return self
# Send waveform to the device
+ self.visa_handle.write(mes)
[docs] def send_pattern(self, w, m1, m2, filename, clock):
'''
@@ -690,8 +690,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG520
lenlen=str(len(str(len(s6) + len(s5) + len(s4) + len(s3))))
s2 = '#' + lenlen + str(len(s6) + len(s5) + len(s4) + len(s3))
- mes = s1 + s2 + s3 + s4 + s5 + s6
- self.visa_handle.write(mes)
+
mes = s1 + s2 + s3 + s4 + s5 + s6
+ self.visa_handle.write(mes)
+ self.do_set_filename(filename, channel)
+ '''
+ pass
[docs] def send_sequence(self, wfs, rep, wait, goto, logic_jump, filename):
'''
@@ -774,8 +774,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG520
s2 = '#' + lenlen + str(len(s5) + len(s4) + len(s3))
- mes = s1 + s2 + s3 + s4 + s5
- self.visa_handle.write(mes)
+
mes = s1 + s2 + s3 + s4 + s5
+ self.visa_handle.write(mes)
[docs] def send_sequence2(self,wfs1,wfs2,rep,wait,goto,logic_jump,filename):
'''
@@ -810,8 +810,8 @@
Source code for qcodes.instrument_drivers.tektronix.AWG520
s2 = '#' + lenlen + str(len(s5) + len(s4) + len(s3))
- mes = s1 + s2 + s3 + s4 + s5
- self.visa_handle.write(mes)
+
mes = s1 + s2 + s3 + s4 + s5
+ self.visa_handle.write(mes)
[docs] def set_sequence(self,filename):
'''
@@ -819,15 +819,15 @@
Source code for qcodes.instrument_drivers.tektronix.AWG520
Waveforms/patterns to be executed on respective channel
must be defined inside the sequence file itself
make sure to send all waveforms before setting a seq
- '''
- self.visa_handle.write('SOUR%s:FUNC:USER "%s","MAIN"' % (1, filename))
+
'''
+ self.visa_handle.write('SOUR%s:FUNC:USER "%s","MAIN"' % (1, filename))
[docs] def load_and_set_sequence(self,wfs,rep,wait,goto,logic_jump,filename):
'''
Loads and sets the awg sequecne
'''
-
self.send_sequence(wfs,rep,wait,goto,logic_jump,filename)
-
self.set_sequence(filename)
+ self.send_sequence(wfs,rep,wait,goto,logic_jump,filename)
+ self.set_sequence(filename)
diff --git a/_modules/qcodes/instrument_drivers/tektronix/AWG5200.html b/_modules/qcodes/instrument_drivers/tektronix/AWG5200.html
index ada58f232e8..9a086d21935 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/AWG5200.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/AWG5200.html
@@ -288,8 +288,8 @@ Source code for qcodes.instrument_drivers.tektronix.AWG5200
s2 = '#' + str(len(str(len(s3)))) + str(len(s3))
s2 = s2.encode('UTF-8')
- mes = s1 + s2 + s3
- self.visa_handle.write_raw(mes)
+ mes = s1 + s2 + s3
+ self.visa_handle.write_raw(mes)
diff --git a/_modules/qcodes/instrument_drivers/tektronix/AWGFileParser.html b/_modules/qcodes/instrument_drivers/tektronix/AWGFileParser.html
index abc69c03a20..db0e954a674 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/AWGFileParser.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/AWGFileParser.html
@@ -719,8 +719,8 @@ Source code for qcodes.instrument_drivers.tektronix.AWGFileParser
instdict, waveformlist, sequencelist = _parser1(awgfilepath)
wfmdict = _parser2(waveformlist)
callsigtuple = _parser3(sequencelist, wfmdict)
-
- return (callsigtuple, instdict)
+
+ return (callsigtuple, instdict)
diff --git a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2000.html b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2000.html
index 3c0bf03b0a8..669f8408bed 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2000.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2000.html
@@ -188,12 +188,12 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2000
if s in conversions.keys():
s = conversions[s]
-
- return s
+
+ return s
-[docs]def parse_output_bool(value):
-
return True if int(value) == 1 else False
+[docs]def parse_output_bool(value):
+ return True if int(value) == 1 else False
[docs]class Keithley_2000(VisaInstrument):
@@ -334,8 +334,8 @@
Source code for qcodes.instrument_drivers.tektronix.Keithley_2000
[docs] def trigger(self):
if not self.trigger_continuous():
-
self.write('INIT')
-
self._trigger_sent = True
+
self.write('INIT')
+ self._trigger_sent = True
def _read_next_value(self):
# Prevent a timeout when no trigger has been sent
@@ -360,8 +360,8 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2000
mode = parse_output_string(self._mode_map[self.mode()])
cmd = '{}:{} {}'.format(mode, parameter, value)
-
- self.write(cmd)
+
+ self.write(cmd)
diff --git a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2400.html b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2400.html
index 9e006468edc..f8a4cf1704b 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2400.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2400.html
@@ -267,8 +267,8 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2400
Cancels all pending commands.
Cancels all previously send `*OPC` and `*OPC?`
- """
- self.write(':*RST')
+ """
+ self.write(':*RST')
def _volt_parser(self, msg):
fields = [float(x) for x in msg.split(',')]
@@ -279,8 +279,8 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2400
return fields[1]
def _resistance_parser(self, msg):
- fields = [float(x) for x in msg.split(',')]
- return fields[0]/fields[1]
+ fields = [float(x) for x in msg.split(',')]
+ return fields[0]/fields[1]
diff --git a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2600.html b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2600.html
index c2bdf7b0b32..68fc9b9472d 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2600.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2600.html
@@ -332,41 +332,41 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2600
model = model[6:]
IDN = {'vendor': vendor, 'model': model,
- 'serial': serial, 'firmware': firmware}
- return IDN
+ 'serial': serial, 'firmware': firmware}
+ return IDN
[docs] def display_clear(self):
"""
This function clears the display, but also leaves it in user mode
-
"""
-
self.visa_handle.write('display.clear()')
+ """
+ self.visa_handle.write('display.clear()')
[docs] def display_normal(self):
"""
Set the display to the default mode
-
"""
-
self.visa_handle.write('display.screen = display.SMUA_SMUB')
+ """
+ self.visa_handle.write('display.screen = display.SMUA_SMUB')
[docs] def exit_key(self):
"""
Get back the normal screen after an error:
send an EXIT key press event
-
"""
-
self.visa_handle.write('display.sendkey(75)')
+ """
+ self.visa_handle.write('display.sendkey(75)')
[docs] def reset(self):
"""
Reset instrument to factory defaults
"""
self.write('reset()')
-
# remember to update all the metadata
-
self.snapshot(update=True)
+ # remember to update all the metadata
+ self.snapshot(update=True)
-[docs] def ask(self, cmd):
-
return super().ask('print(smu{:s}.{:s})'.format(self._channel, cmd))
+
+ return super().ask('print(smu{:s}.{:s})'.format(self._channel, cmd))
-[docs] def write(self, cmd):
-
super().write('smu{:s}.{:s}'.format(self._channel, cmd))
+
+ super().write('smu{:s}.{:s}'.format(self._channel, cmd))
diff --git a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2600_channels.html b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2600_channels.html
index 333804531fc..ce48f042048 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2600_channels.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2600_channels.html
@@ -229,8 +229,8 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2600_channels
self.start = start
self.stop = stop
- self.steps = steps
- self.mode = mode
+ self.steps = steps
+ self.mode = mode
[docs] def get_raw(self) -> np.ndarray:
@@ -238,8 +238,8 @@
Source code for qcodes.instrument_drivers.tektronix.Keithley_2600_channels
self.stop,
self.steps,
self.mode)
-
- return data
+
+ return data
[docs]class KeithleyChannel(InstrumentChannel):
@@ -367,8 +367,8 @@
Source code for qcodes.instrument_drivers.tektronix.Keithley_2600_channels
self.write('{}.reset()'.format(self.channel))
# remember to update all the metadata
log.debug('Reset channel {}.'.format(self.channel) +
- 'Updating settings...')
- self.snapshot(update=True)
+ 'Updating settings...')
+ self.snapshot(update=True)
[docs] def doFastSweep(self, start: float, stop: float,
steps: int, mode: str) -> DataSet:
@@ -387,8 +387,8 @@
Source code for qcodes.instrument_drivers.tektronix.Keithley_2600_channels
self.fastsweep.prepareSweep(start, stop, steps, mode)
data = qc.Measure(self.fastsweep).run()
-
- return data
+
+ return data
def _fast_sweep(self, start: float, stop: float, steps: int,
mode: str='IV') -> np.ndarray:
@@ -468,8 +468,8 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2600_channels
outdata = np.reshape(outdata, len(outdata))
self._parent.visa_handle.timeout = oldtimeout
-
- return outdata
+
+ return outdata
[docs]class Keithley_2600(VisaInstrument):
@@ -550,27 +550,27 @@
Source code for qcodes.instrument_drivers.tektronix.Keithley_2600_channels
model = model[6:]
IDN = {'vendor': vendor, 'model': model,
- 'serial': serial, 'firmware': firmware}
- return IDN
+ 'serial': serial, 'firmware': firmware}
+ return IDN
[docs] def display_clear(self):
"""
This function clears the display, but also leaves it in user mode
-
"""
-
self.visa_handle.write('display.clear()')
+ """
+ self.visa_handle.write('display.clear()')
[docs] def display_normal(self):
"""
Set the display to the default mode
-
"""
-
self.visa_handle.write('display.screen = display.SMUA_SMUB')
+ """
+ self.visa_handle.write('display.screen = display.SMUA_SMUB')
[docs] def exit_key(self):
"""
Get back the normal screen after an error:
send an EXIT key press event
-
"""
-
self.visa_handle.write('display.sendkey(75)')
+ """
+ self.visa_handle.write('display.sendkey(75)')
[docs] def reset(self):
"""
@@ -579,15 +579,15 @@
Source code for qcodes.instrument_drivers.tektronix.Keithley_2600_channels
"""
self.write('reset()')
# remember to update all the metadata
- log.debug('Reset instrument. Re-querying settings...')
- self.snapshot(update=True)
+ log.debug('Reset instrument. Re-querying settings...')
+ self.snapshot(update=True)
[docs] def ask(self, cmd: str) -> str:
"""
Override of normal ask. This is important, since queries to the
instrument must be wrapped in 'print()'
-
"""
-
return super().ask('print({:s})'.format(cmd))
+ """
+ return super().ask('print({:s})'.format(cmd))
@staticmethod
def _scriptwrapper(program: List[str], debug: bool=False) -> str:
@@ -604,8 +604,8 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2600_channels
wrapped = 'loadandrunscript\r\n{}endscript\n'.format(mainprog)
if debug:
log.debug('Wrapped the following script:')
- log.debug(wrapped)
- return wrapped
+ log.debug(wrapped)
+ return wrapped
diff --git a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2700.html b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2700.html
index 3cb326fc4e2..560f03324fa 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/Keithley_2700.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/Keithley_2700.html
@@ -205,25 +205,25 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2700
'''
if val:
return "ON"
- else:
- return "OFF"
+ else:
+ return "OFF"
# %% Driver for Keithley_2700
[docs]def parseint(v):
-
logging.debug('parseint: %s -> %d' % (v, int(v)))
-
return int(v)
+ logging.debug('parseint: %s -> %d' % (v, int(v)))
+ return int(v)
[docs]def parsebool(v):
r = bool(int(v))
-
logging.debug('parsetobool: %s -> %d' % (v, r))
-
return r
+ logging.debug('parsetobool: %s -> %d' % (v, r))
+ return r
-[docs]def parsestr(v):
-
return v.strip().strip('"')
+
+ return v.strip().strip('"')
[docs]class Keithley_2700(VisaInstrument):
@@ -363,8 +363,8 @@
Source code for qcodes.instrument_drivers.tektronix.Keithley_2700
for p in ['mode', 'trigger_count', 'trigger_continuous', 'averaging',
'digits', 'nplc', 'integrationtime', 'range', 'display']:
logging.debug('get %s' % p)
- par = getattr(self, p)
- par.get()
+
par = getattr(self, p)
+ par.get()
# self.get_trigger_delay()
# self.get_trigger_source()
@@ -400,8 +400,8 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2700
Output:
None
'''
- logging.debug('Set mode to DC Voltage')
- self.mode.set('VOLT:DC')
+ logging.debug('Set mode to DC Voltage')
+ self.mode.set('VOLT:DC')
[docs] def set_defaults(self):
'''
@@ -427,8 +427,8 @@
Source code for qcodes.instrument_drivers.tektronix.Keithley_2700
self.trigger_continuous.set(True)
self.range.set(10)
self.nplc.set(1)
- self.averaging.set(False)
- return
+
self.averaging.set(False)
+ return
def _determine_mode(self, mode):
'''
@@ -473,8 +473,8 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2700
else:
logging.error('invalid mode %s' % mode)
- # Get all values again because some parameters depend on mode
- self.get_all()
+ # Get all values again because some parameters depend on mode
+ self.get_all()
def _mode_par_value(self, mode, par, val):
'''
@@ -521,8 +521,8 @@ Source code for qcodes.instrument_drivers.tektronix.Keithley_2700
None
'''
logging.debug('Resetting instrument')
- self._visainstrument.write('*RST')
- self.get_all()
+ self._visainstrument.write('*RST')
+ self.get_all()
diff --git a/_modules/qcodes/instrument_drivers/tektronix/TPS2012.html b/_modules/qcodes/instrument_drivers/tektronix/TPS2012.html
index 31422e34e30..abcf52ba275 100644
--- a/_modules/qcodes/instrument_drivers/tektronix/TPS2012.html
+++ b/_modules/qcodes/instrument_drivers/tektronix/TPS2012.html
@@ -177,8 +177,8 @@ Source code for qcodes.instrument_drivers.tektronix.TPS2012
log
= logging.getLogger(__name__)
-
[docs]class TraceNotReady(Exception):
-
pass
+
[docs]class TraceNotReady(Exception):
+
pass
[docs]class ScopeArray(ArrayParameter):
@@ -200,8 +200,8 @@
Source code for qcodes.instrument_drivers.tektronix.TPS2012
xstart = preamble['x_zero']
xinc = preamble['x_incr']
no_of_points = preamble['no_of_points']
- xdata = np.linspace(xstart, no_of_points * xinc + xstart, no_of_points)
- return xdata, no_of_points
+
xdata = np.linspace(xstart, no_of_points * xinc + xstart, no_of_points)
+
return xdata, no_of_points
[docs] def prepare_curvedata(self):
"""
@@ -217,8 +217,8 @@
Source code for qcodes.instrument_drivers.tektronix.TPS2012
xdata, no_of_points = self.calc_set_points()
self.setpoints = (tuple(xdata), )
self.shape = (no_of_points, )
-
- self._instrument._parent.trace_ready = True
+
+
self._instrument._parent.trace_ready = True
[docs] def get(self):
if not self._instrument._parent.trace_ready:
@@ -231,8 +231,8 @@
Source code for qcodes.instrument_drivers.tektronix.TPS2012
# already been copied to the dataset when get is called.
# self.setpoints = (tuple(xdata),)
- # self.shape = (npoints,)
- return ydata
+
# self.shape = (npoints,)
+
return ydata
def _curveasker(self, ch):
self._instrument.write('DATa:SOURce CH{}'.format(ch))
@@ -335,8 +335,8 @@
Source code for qcodes.instrument_drivers.tektronix.TPS2012
assert len(ydata) == preamble['no_of_points']
xstart = preamble['x_zero']
xinc = preamble['x_incr']
- xdata = np.linspace(xstart, len(ydata)*xinc+xstart, len(ydata))
- return xdata, ydata, preamble['no_of_points']
+
xdata = np.linspace(xstart, len(ydata)*xinc+xstart, len(ydata))
+ return xdata, ydata, preamble['no_of_points']
[docs]class TPS2012Channel(InstrumentChannel):
@@ -378,8 +378,8 @@
Source code for qcodes.instrument_drivers.tektronix.TPS2012
# denoting state display state of ch1, ch2, ?, ?, ?
# (maybe ch1, ch2, math, ref1, ref2 ..?)
selected = list(map(int, self.ask('SELect?').split(';')))
- state = selected[ch - 1]
- return state
+
state = selected[ch - 1]
+ return state
[docs]class TPS2012(VisaInstrument):
@@ -512,8 +512,8 @@
Source code for qcodes.instrument_drivers.tektronix.TPS2012
if verbose:
print(message)
except VisaIOError:
- gotexception = True
- self.visa_handle.timeout = original_timeout
+ gotexception = True
+ self.visa_handle.timeout = original_timeout
diff --git a/_modules/qcodes/instrument_drivers/test.html b/_modules/qcodes/instrument_drivers/test.html
index 64843c72be4..258b69753cd 100644
--- a/_modules/qcodes/instrument_drivers/test.html
+++ b/_modules/qcodes/instrument_drivers/test.html
@@ -217,8 +217,8 @@ Source code for qcodes.instrument_drivers.test
else:
print('***** found {} instances of {}; '
'testing the last one *****'.format(len(instances), name))
-
- cls.instrument = instances[-1]
+
+ cls.instrument = instances[-1]
[docs]def test_instruments(verbosity=1):
@@ -233,8 +233,8 @@
Source code for qcodes.instrument_drivers.test
driver_path = qcdrivers.__path__[0]
suite = unittest.defaultTestLoader.discover(
- driver_path, top_level_dir=qcodes.__path__[0])
- unittest.TextTestRunner(verbosity=verbosity).run(suite)
+
driver_path, top_level_dir=qcodes.__path__[0])
+ unittest.TextTestRunner(verbosity=verbosity).run(suite)
[docs]def test_instrument(instrument_testcase, verbosity=2):
@@ -255,8 +255,8 @@
Source code for qcodes.instrument_drivers.test
module = importlib.import_module(module_name)
reloaded_testcase = getattr(module, class_name)
- suite = unittest.defaultTestLoader.loadTestsFromTestCase(reloaded_testcase)
- unittest.TextTestRunner(verbosity=verbosity).run(suite)
+
suite = unittest.defaultTestLoader.loadTestsFromTestCase(reloaded_testcase)
+ unittest.TextTestRunner(verbosity=verbosity).run(suite)
diff --git a/_modules/qcodes/instrument_drivers/weinschel/Weinschel_8320.html b/_modules/qcodes/instrument_drivers/weinschel/Weinschel_8320.html
index fbd4c447c27..29fca6c787d 100644
--- a/_modules/qcodes/instrument_drivers/weinschel/Weinschel_8320.html
+++ b/_modules/qcodes/instrument_drivers/weinschel/Weinschel_8320.html
@@ -182,8 +182,8 @@ Source code for qcodes.instrument_drivers.weinschel.Weinschel_8320
get_cmd='ATTN? 1',
vals=vals.Enum(*np.arange(0, 60.1, 2).tolist()),
get_parser=float)
-
- self.connect_message()
+
+ self.connect_message()
diff --git a/_modules/qcodes/instrument_drivers/weinschel/test_suite.html b/_modules/qcodes/instrument_drivers/weinschel/test_suite.html
index a46ed3e55ac..0b8dbff5b77 100644
--- a/_modules/qcodes/instrument_drivers/weinschel/test_suite.html
+++ b/_modules/qcodes/instrument_drivers/weinschel/test_suite.html
@@ -176,8 +176,8 @@ Source code for qcodes.instrument_drivers.weinschel.test_suite
driver
= Weinschel_8320
[docs] def test_firmware_version(self):
-
v = self.instrument.IDN.get()
-
self.assertTrue(v.startswith('API Weinschel, 8320,'))
+
v = self.instrument.IDN.get()
+ self.assertTrue(v.startswith('API Weinschel, 8320,'))
[docs] def test_attenuation(self):
curr_val = self.instrument.attenuation.get()
@@ -188,8 +188,8 @@
Source code for qcodes.instrument_drivers.weinschel.test_suite
for v in [-2, 3, 61]:
with self.assertRaises(ValueError):
- self.instrument.attenuation.set(v)
- self.instrument.attenuation.set(curr_val)
+ self.instrument.attenuation.set(v)
+ self.instrument.attenuation.set(curr_val)
diff --git a/_modules/qcodes/instrument_drivers/yokogawa/GS200.html b/_modules/qcodes/instrument_drivers/yokogawa/GS200.html
index b55d4c6718a..f951e99bfb7 100644
--- a/_modules/qcodes/instrument_drivers/yokogawa/GS200.html
+++ b/_modules/qcodes/instrument_drivers/yokogawa/GS200.html
@@ -178,12 +178,12 @@ Source code for qcodes.instrument_drivers.yokogawa.GS200
Returns:
Rounded integer
- """
- return round(float(val))
+ """
+ return round(float(val))
-[docs]class GS200Exception(Exception):
-
pass
+[docs]class GS200Exception(Exception):
+ pass
[docs]class GS200_Monitor(InstrumentChannel):
"""
@@ -264,19 +264,19 @@
Source code for qcodes.instrument_drivers.yokogawa.GS200
[docs] def off(self):
"""Turn measurement off"""
-
self.write(':SENS 0')
-
self._enabled = False
+
self.write(':SENS 0')
+ self._enabled = False
[docs] def on(self):
"""Turn measurement on"""
-
self.write(':SENS 1')
-
self._enabled = True
+ self.write(':SENS 1')
+ self._enabled = True
[docs] def state(self):
"""Check measurement state"""
state = int(self.ask(':SENS?'))
-
self._enabled = bool(state)
-
return state
+ self._enabled = bool(state)
+ return state
def _get_measurement(self):
""" Check that measurements are enabled and then take a measurement """
@@ -319,8 +319,8 @@ Source code for qcodes.instrument_drivers.yokogawa.GS200
self.measure.label = 'Source Current'
self.measure.unit = 'I'
else:
- self.measure.label = 'Source Voltage'
- self.measure.unit = 'V'
+ self.measure.label = 'Source Voltage'
+ self.measure.unit = 'V'
[docs]class GS200(VisaInstrument):
"""
@@ -463,19 +463,19 @@
Source code for qcodes.instrument_drivers.yokogawa.GS200
[docs] def on(self):
"""Turn output on"""
-
self.write('OUTPUT 1')
-
self.measure._output = True
+
self.write('OUTPUT 1')
+ self.measure._output = True
[docs] def off(self):
"""Turn output off"""
-
self.write('OUTPUT 0')
-
self.measure._output = False
+ self.write('OUTPUT 0')
+ self.measure._output = False
[docs] def state(self):
"""Check state"""
state = int(self.ask('OUTPUT?'))
-
self.measure._output = bool(state)
-
return state
+ self.measure._output = bool(state)
+ return state
[docs] def ramp_voltage(self, ramp_to: float, step: float, delay: float) -> None:
"""
@@ -486,8 +486,8 @@
Source code for qcodes.instrument_drivers.yokogawa.GS200
step (float): The ramp steps in Volt
delay (float): The time between finishing one step and starting another in seconds.
"""
- self._assert_mode("VOLT")
- self._ramp_source(ramp_to, step, delay)
+
self._assert_mode("VOLT")
+ self._ramp_source(ramp_to, step, delay)
[docs] def ramp_current(self, ramp_to: float, step: float, delay: float) -> None:
"""
@@ -498,8 +498,8 @@
Source code for qcodes.instrument_drivers.yokogawa.GS200
step (float): The ramp steps in Ampere
delay (float): The time between finishing one step and starting another in seconds.
"""
- self._assert_mode("CURR")
- self._ramp_source(ramp_to, step, delay)
+
self._assert_mode("CURR")
+ self._ramp_source(ramp_to, step, delay)
def _ramp_source(self, ramp_to: float, step: float, delay: float) -> None:
"""
@@ -671,8 +671,8 @@ Source code for qcodes.instrument_drivers.yokogawa.GS200
only happen if the set value is smaller then the present range.
"""
self._assert_mode(mode)
- self._cached_range_value = float(self.ask(":SOUR:RANG?"))
- return self._cached_range_value
+ self._cached_range_value = float(self.ask(":SOUR:RANG?"))
+ return self._cached_range_value
diff --git a/_modules/qcodes/loops.html b/_modules/qcodes/loops.html
index 266be493724..46db93f1795 100644
--- a/_modules/qcodes/loops.html
+++ b/_modules/qcodes/loops.html
@@ -281,8 +281,8 @@ Source code for qcodes.loops
self.then_actions = ()
self.bg_task = None
self.bg_final_task = None
- self.bg_min_delay = None
- self.progress_interval = progress_interval
+ self.bg_min_delay = None
+ self.progress_interval = progress_interval
def __getitem__(self, item):
"""
@@ -465,8 +465,8 @@ Source code for qcodes.loops
'__class__': full_class(self),
'sweep_values': self.sweep_values.snapshot(update=update),
'delay': self.delay,
- 'then_actions': _actions_snapshot(self.then_actions, update)
- }
+ 'then_actions': _actions_snapshot(self.then_actions, update)
+ }
def _attach_then_actions(loop, actions, overwrite):
diff --git a/_modules/qcodes/measure.html b/_modules/qcodes/measure.html
index 9f0e1c67196..69b3a14743f 100644
--- a/_modules/qcodes/measure.html
+++ b/_modules/qcodes/measure.html
@@ -188,8 +188,8 @@ Source code for qcodes.measure
set_cmd=None, get_cmd=None)
[docs] def __init__(self, *actions):
-
super().__init__()
-
self._dummyLoop = Loop(self.dummy_parameter[0]).each(*actions)
+ super().__init__()
+ self._dummyLoop = Loop(self.dummy_parameter[0]).each(*actions)
def run_temp(self, **kwargs):
"""
@@ -313,8 +313,8 @@ Source code for qcodes.measure
def snapshot_base(self, update=False):
return {
'__class__': full_class(self),
- 'actions': _actions_snapshot(self._dummyLoop.actions, update)
- }
+ 'actions': _actions_snapshot(self._dummyLoop.actions, update)
+ }
diff --git a/_modules/qcodes/plots/pyqtgraph.html b/_modules/qcodes/plots/pyqtgraph.html
index 57363bd234a..b3efe53fac5 100644
--- a/_modules/qcodes/plots/pyqtgraph.html
+++ b/_modules/qcodes/plots/pyqtgraph.html
@@ -268,8 +268,8 @@ Source code for qcodes.plots.pyqtgraph
if not show_window:
self.win.hide()
-
- self.plots.append(self)
+
+ self.plots.append(self)
def set_relative_window_position(self, fig_x_position, fig_y_position):
if fig_x_position is not None or fig_y_position is not None:
@@ -763,8 +763,8 @@ Source code for qcodes.plots.pyqtgraph
if (rangesetter is not None
and arrmin is not None
- and arrmax is not None):
- rangesetter(arrmin, arrmax)
+ and arrmax is not None):
+ rangesetter(arrmin, arrmax)
diff --git a/_modules/qcodes/plots/qcmatplotlib.html b/_modules/qcodes/plots/qcmatplotlib.html
index 5b21d3d44c6..ee444feb9cb 100644
--- a/_modules/qcodes/plots/qcmatplotlib.html
+++ b/_modules/qcodes/plots/qcmatplotlib.html
@@ -232,8 +232,8 @@ Source code for qcodes.plots.qcmatplotlib
else:
# Arg is single element, add to subplot
self[k].add(arg, **kwargs)
-
- self.tight_layout()
+
+ self.tight_layout()
def __getitem__(self, key):
"""
@@ -628,8 +628,8 @@ Source code for qcodes.plots.qcmatplotlib
new_label)
else:
subplot.qcodes_colorbar.formatter = tx
- subplot.qcodes_colorbar.set_label(new_label)
- subplot.qcodes_colorbar.update_ticks()
+ subplot.qcodes_colorbar.set_label(new_label)
+ subplot.qcodes_colorbar.update_ticks()
diff --git a/_modules/qcodes/station.html b/_modules/qcodes/station.html
index d5a078b0fd8..6bafe02fd54 100644
--- a/_modules/qcodes/station.html
+++ b/_modules/qcodes/station.html
@@ -225,8 +225,8 @@ Source code for qcodes.station
self.add_component(item, update_snapshot=update_snapshot)
self.monitor = monitor
-
- self.default_measurement = []
+
+ self.default_measurement = []
def snapshot_base(self, update=False):
"""
@@ -336,8 +336,8 @@ Source code for qcodes.station
def __getitem__(self, key):
"""Shortcut to components dict."""
return self.components[key]
-
- delegate_attr_dicts = ['components']
+
+ delegate_attr_dicts = ['components']
diff --git a/_notebooks/Datasaving examples.html b/_notebooks/Datasaving examples.html
index a85588968de..79fd10ce83e 100644
--- a/_notebooks/Datasaving examples.html
+++ b/_notebooks/Datasaving examples.html
@@ -229,24 +229,10 @@ Start a loop and generate data from dummy instruments