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 = freq.to(u.Hz).value
self.command("freq {:d} Hz".format(int(freq)))
new_freq = self.frequency
if int(new_freq.to(u.Hz).value) != freq:
if new_freq.to(u.Hz).value != int(freq):
raise RuntimeError("Setting frequency failed: tried to set to {}, it is now {}".format(
freq, new_freq))
......
Markdown is supported
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