Commit 5aa7e0eb authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Rewrites TX voltage handling

Showing with 4 additions and 1 deletion
+4 -1
......@@ -211,7 +211,10 @@ class Tx(TxAbstract):
def voltage(self, value):
assert isinstance(value, float)
value = np.max([TX_CONFIG['voltage_min'], np.min([value, TX_CONFIG['voltage_max']])])
super().voltage.fset(self, value)
if not self.voltage_adjustable:
self.exec_logger.warning(f'Voltage cannot be set on {self.board_name}...')
else:
self._voltage = value
class Rx(RxAbstract):
def __init__(self, **kwargs):
......
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