Commit b39d9c7c authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Fix check for setting frequency, again

parent 1b2e1331
......@@ -32,7 +32,7 @@ class CamrasHpibDevice(HpibDevice):
freq =
self.command("freq {:d} Hz".format(int(freq)))
new_freq = self.frequency
if int( != freq:
if != int(freq):
raise RuntimeError("Setting frequency failed: tried to set to {}, it is now {}".format(
freq, new_freq))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment