From ff37cdc26cf7264f7f5f8b4c702b15c101fc1882 Mon Sep 17 00:00:00 2001 From: dhslichter Date: Mon, 5 Jan 2015 17:40:37 -0700 Subject: [PATCH] Update driver.py --- artiq/devices/lda/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/devices/lda/driver.py b/artiq/devices/lda/driver.py index 2e422c2ab..c95dcd395 100644 --- a/artiq/devices/lda/driver.py +++ b/artiq/devices/lda/driver.py @@ -159,4 +159,4 @@ class Lda: :type attenuation: int, float or Fraction """ - self.set(0x8d, bytes(chr(int(round(attenuation*4))), "latin_1")) + self.set(0x8d, bytes([int(round(attenuation*4))]))