prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Keithely 2600 "resolution"
  @MerlinSmiles  right now  we are limiting the set to 8 digits (https://github.com/QCoDeS/Qcodes/blob/master/qcodes/instrument_drivers/tektronix/Keithley_2600.py#L23)
  Afaik it can go to to 12 digits. Do you confirm ? 
  
  
  </issue>
  <code>
  [start of qcodes/instrument_drivers/tektronix/Keithley_2600.py]
  1 from qcodes import VisaInstrument
  2 
  3 
  4 class Keithley_2600(VisaInstrument):
  5     """
  6     channel: use channel 'a' or 'b'
  7 
  8     This is the qcodes driver for the Keithley_2600 Source-Meter series,
  9     tested with Keithley_2614B
  10 
  11     Status: beta-version.
  12         TODO:
  13         - Add all parameters that are in the manual
  14         - range and limit should be set according to mode
  15         - add ramping and such stuff
  16 
  17     """
  18     def __init__(self, name, address, channel, **kwargs):
  19         super().__init__(name, address, terminator='\n', **kwargs)
  20         self._channel = channel
  21 
  22         self.add_parameter('volt', get_cmd='measure.v()',
  23                            get_parser=float, set_cmd='source.levelv={:.8f}',
  24                            label='Voltage',
  25                            unit='V')
  26         self.add_parameter('curr', get_cmd='measure.i()',
  27                            get_parser=float, set_cmd='source.leveli={:.8f}',
  28                            label='Current',
  29                            unit='A')
  30         self.add_parameter('mode',
  31                            get_cmd='source.func',
  32                            set_cmd='source.func={:d}',
  33                            val_mapping={'current': 0, 'voltage': 1})
  34         self.add_parameter('output',
  35                            get_cmd='source.output',
  36                            set_cmd='source.output={:d}',
  37                            val_mapping={'on':  1, 'off': 0})
  38         # Source range
  39         # needs get after set
  40         self.add_parameter('rangev',
  41                            get_cmd='source.rangev',
  42                            get_parser=float,
  43                            set_cmd='source.rangev={:.4f}',
  44                            unit='V')
  45         # Measure range
  46         # needs get after set
  47         self.add_parameter('rangei',
  48                            get_cmd='source.rangei',
  49                            get_parser=float,
  50                            set_cmd='source.rangei={:.4f}',
  51                            unit='A')
  52         # Compliance limit
  53         self.add_parameter('limitv',
  54                            get_cmd='source.limitv',
  55                            get_parser=float,
  56                            set_cmd='source.limitv={:.4f}',
  57                            unit='V')
  58         # Compliance limit
  59         self.add_parameter('limiti',
  60                            get_cmd='source.limiti',
  61                            get_parser=float,
  62                            set_cmd='source.limiti={:.4f}',
  63                            unit='A')
  64 
  65         self.connect_message()
  66 
  67     def get_idn(self):
  68         IDN = self.ask_raw('*IDN?')
  69         vendor, model, serial, firmware = map(str.strip, IDN.split(','))
  70         model = model[6:]
  71 
  72         IDN = {'vendor': vendor, 'model': model,
  73                'serial': serial, 'firmware': firmware}
  74         return IDN
  75 
  76     def reset(self):
  77         self.write('reset()')
  78 
  79     def ask(self, cmd):
  80         return super().ask('print(smu{:s}.{:s})'.format(self._channel, cmd))
  81 
  82     def write(self, cmd):
  83         super().write('smu{:s}.{:s}'.format(self._channel, cmd))
  84
  [end of qcodes/instrument_drivers/tektronix/Keithley_2600.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/qcodes/instrument_drivers/tektronix/Keithley_2600.py b/qcodes/instrument_drivers/tektronix/Keithley_2600.py
  --- a/qcodes/instrument_drivers/tektronix/Keithley_2600.py
  +++ b/qcodes/instrument_drivers/tektronix/Keithley_2600.py
  @@ -20,11 +20,11 @@
           self._channel = channel
   
           self.add_parameter('volt', get_cmd='measure.v()',
  -                           get_parser=float, set_cmd='source.levelv={:.8f}',
  +                           get_parser=float, set_cmd='source.levelv={:.12f}',
                              label='Voltage',
                              unit='V')
           self.add_parameter('curr', get_cmd='measure.i()',
  -                           get_parser=float, set_cmd='source.leveli={:.8f}',
  +                           get_parser=float, set_cmd='source.leveli={:.12f}',
                              label='Current',
                              unit='A')
           self.add_parameter('mode',
  
verification_info: {"golden_diff": "diff --git a/qcodes/instrument_drivers/tektronix/Keithley_2600.py b/qcodes/instrument_drivers/tektronix/Keithley_2600.py\n--- a/qcodes/instrument_drivers/tektronix/Keithley_2600.py\n+++ b/qcodes/instrument_drivers/tektronix/Keithley_2600.py\n@@ -20,11 +20,11 @@\n         self._channel = channel\n \n         self.add_parameter('volt', get_cmd='measure.v()',\n-                           get_parser=float, set_cmd='source.levelv={:.8f}',\n+                           get_parser=float, set_cmd='source.levelv={:.12f}',\n                            label='Voltage',\n                            unit='V')\n         self.add_parameter('curr', get_cmd='measure.i()',\n-                           get_parser=float, set_cmd='source.leveli={:.8f}',\n+                           get_parser=float, set_cmd='source.leveli={:.12f}',\n                            label='Current',\n                            unit='A')\n         self.add_parameter('mode',\n", "issue": "Keithely 2600 \"resolution\"\n@MerlinSmiles  right now  we are limiting the set to 8 digits (https://github.com/QCoDeS/Qcodes/blob/master/qcodes/instrument_drivers/tektronix/Keithley_2600.py#L23)\r\nAfaik it can go to to 12 digits. Do you confirm ? \r\n\n", "before_files": [{"content": "from qcodes import VisaInstrument\n\n\nclass Keithley_2600(VisaInstrument):\n    \"\"\"\n    channel: use channel 'a' or 'b'\n\n    This is the qcodes driver for the Keithley_2600 Source-Meter series,\n    tested with Keithley_2614B\n\n    Status: beta-version.\n        TODO:\n        - Add all parameters that are in the manual\n        - range and limit should be set according to mode\n        - add ramping and such stuff\n\n    \"\"\"\n    def __init__(self, name, address, channel, **kwargs):\n        super().__init__(name, address, terminator='\\n', **kwargs)\n        self._channel = channel\n\n        self.add_parameter('volt', get_cmd='measure.v()',\n                           get_parser=float, set_cmd='source.levelv={:.8f}',\n                           label='Voltage',\n                           unit='V')\n        self.add_parameter('curr', get_cmd='measure.i()',\n                           get_parser=float, set_cmd='source.leveli={:.8f}',\n                           label='Current',\n                           unit='A')\n        self.add_parameter('mode',\n                           get_cmd='source.func',\n                           set_cmd='source.func={:d}',\n                           val_mapping={'current': 0, 'voltage': 1})\n        self.add_parameter('output',\n                           get_cmd='source.output',\n                           set_cmd='source.output={:d}',\n                           val_mapping={'on':  1, 'off': 0})\n        # Source range\n        # needs get after set\n        self.add_parameter('rangev',\n                           get_cmd='source.rangev',\n                           get_parser=float,\n                           set_cmd='source.rangev={:.4f}',\n                           unit='V')\n        # Measure range\n        # needs get after set\n        self.add_parameter('rangei',\n                           get_cmd='source.rangei',\n                           get_parser=float,\n                           set_cmd='source.rangei={:.4f}',\n                           unit='A')\n        # Compliance limit\n        self.add_parameter('limitv',\n                           get_cmd='source.limitv',\n                           get_parser=float,\n                           set_cmd='source.limitv={:.4f}',\n                           unit='V')\n        # Compliance limit\n        self.add_parameter('limiti',\n                           get_cmd='source.limiti',\n                           get_parser=float,\n                           set_cmd='source.limiti={:.4f}',\n                           unit='A')\n\n        self.connect_message()\n\n    def get_idn(self):\n        IDN = self.ask_raw('*IDN?')\n        vendor, model, serial, firmware = map(str.strip, IDN.split(','))\n        model = model[6:]\n\n        IDN = {'vendor': vendor, 'model': model,\n               'serial': serial, 'firmware': firmware}\n        return IDN\n\n    def reset(self):\n        self.write('reset()')\n\n    def ask(self, cmd):\n        return super().ask('print(smu{:s}.{:s})'.format(self._channel, cmd))\n\n    def write(self, cmd):\n        super().write('smu{:s}.{:s}'.format(self._channel, cmd))\n", "path": "qcodes/instrument_drivers/tektronix/Keithley_2600.py"}]}