mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 03:38:25 +08:00
lda: do not print attenuation value in simulation
This commit is contained in:
parent
61f33a9a04
commit
3e46a36a4d
@ -38,7 +38,7 @@ class Ldasim:
|
|||||||
return self._attenuation
|
return self._attenuation
|
||||||
|
|
||||||
def set_attenuation(self, attenuation):
|
def set_attenuation(self, attenuation):
|
||||||
"""Stores the new attenuation value and prints it to console.
|
"""Stores the new attenuation value.
|
||||||
|
|
||||||
:param attenuation: The attenuation value in dB.
|
:param attenuation: The attenuation value in dB.
|
||||||
"""
|
"""
|
||||||
@ -60,7 +60,6 @@ class Ldasim:
|
|||||||
raise ValueError("Cannot set attenuation {} < 0".format(att))
|
raise ValueError("Cannot set attenuation {} < 0".format(att))
|
||||||
else:
|
else:
|
||||||
att = round(att.amount*4)/4. * dB
|
att = round(att.amount*4)/4. * dB
|
||||||
print("setting attenuation to {}".format(att))
|
|
||||||
self._attenuation = att
|
self._attenuation = att
|
||||||
|
|
||||||
def ping(self):
|
def ping(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user