exopy_hqc_legacy/tasks/tasks/instr/set_awg_parameters.py
def _post_setattr_interface(self, old, new):
        """Create empty channels when an interface is selected.

        """
        super(SetAWGParametersTask, self)._post_setattr_interface(old, new)
        if new:
            channels = {}
            specs = new.channels_specs
            for i in new.channels_ids:
                channels[i] = AWGChannelParameters(logical=specs[i][0],
                                                   analogical=specs[i][1])
                channels[i].init_parameters()

            self._channels = channels
Create empty channels when an interface is selected.

        
Create empty channels when an interface is selected.
Create empty channels when an interface is selected .
def _post_setattr_interface(self, old, new):
        super(SetAWGParametersTask, self)._post_setattr_interface(old, new)
        if new:
            channels = {}
            specs = new.channels_specs
            for i in new.channels_ids:
                channels[i] = AWGChannelParameters(logical=specs[i][0],
                                                   analogical=specs[i][1])
                channels[i].init_parameters()
            self._channels = channels
def _post_setattr_interface ( self , old , new ) : super ( SetAWGParametersTask , self ) . _post_setattr_interface ( old , new ) if new : channels = { } specs = new . channels_specs for i in new . channels_ids : channels [ i ] = AWGChannelParameters ( logical = specs [ i ] [ 0 ] , analogical = specs [ i ] [ 1 ] ) channels [ i ] . init_parameters ( ) self . _channels = channels
Create empty channels when an interface is selected.
Create empty channels when an interface is selected .
"""Create empty channels when an interface is selected.

        """
self
old
new