Commit 312029bc authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Fix typo

parent b643d600
...@@ -25,8 +25,8 @@ class CamrasHpibDevice(object): ...@@ -25,8 +25,8 @@ class CamrasHpibDevice(object):
"""Returns the frequency of the device as an astropy Quantity. """Returns the frequency of the device as an astropy Quantity.
Throws a RuntimeError if no response""" Throws a RuntimeError if no response"""
freq_str = CamrasHpibDevice.command_thread.protocol.command("freq?", address=self.hpib_address) freq_str = CamrasHpibDevice.command_thread.protocol.command("freq?", address=self.hpib_address)
if len(freq_str)==0: if not freq_str or len(freq_str)==0:
raise RuntimeError("Camras device at address {} is not responding".format(self._hpib_address)) raise RuntimeError("Camras device at address {} is not responding".format(self.hpib_address))
return int(float(freq_str)) * u.Hz return int(float(freq_str)) * u.Hz
@frequency.setter @frequency.setter
......
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