@@ -1631,7 +1631,7 @@ def get_output_amplitude(self, awg_core: int, channel: int) -> float:
16311631 " (../sines/{awg_core}/amplitudes/{channel})." , DeprecationWarning
16321632 )
16331633 awg_channel = awg_core * 2 + channel
1634- return self .get_output_gain (awg_channel )
1634+ return self .get_output_gain (awg_channel ) # type: ignore
16351635
16361636 @rpc_method
16371637 def set_output_amplitude (self , awg_core : int , channel : int , value : float ) -> None :
@@ -1680,7 +1680,7 @@ def get_output_gain(self, awg_channel: int, gain_index: int = 0) -> float | tupl
16801680
16811681 @rpc_method
16821682 def set_output_gain (
1683- self , awg_channel : int , value : float | list [float , float ], gain_index : int = 0 ) -> None :
1683+ self , awg_channel : int , value : float | list [float ], gain_index : int = 0 ) -> None :
16841684 """Set the output scaling factor[s] (gain[s]) of the specified channel.
16851685
16861686 The gain is a dimensionless scaling factor applied to the digital signal.
@@ -1710,9 +1710,10 @@ def set_output_gain(
17101710 f"[{ self ._name } ]: Gain index set as { gain_index } , but two gain values given." +
17111711 f"Setting only the respective value ({ value [gain_index ]} ) from the inputs."
17121712 )
1713- value = value [gain_index ]
1713+ self . _set_double ( f"awgs/ { awg_core } /outputs/ { channel } /gains/ { gain_index } " , value [gain_index ])
17141714
1715- self ._set_double (f"awgs/{ awg_core } /outputs/{ channel } /gains/{ gain_index } " , value )
1715+ else :
1716+ self ._set_double (f"awgs/{ awg_core } /outputs/{ channel } /gains/{ gain_index } " , value )
17161717
17171718 else :
17181719 if isinstance (value , list | tuple ):
0 commit comments