Quanlse/QWaveform.py
def _getFlagAndWaveContainer(_wave):
            """ Return Flag or wave container. """
            _realFlag = 0
            if flag is not None:
                _realFlag = flag
            elif _wave.flag is not None:
                _realFlag = _wave.flag
            if (_realFlag & QWAVEFORM_FLAG_DO_NOT_CLEAR) and self.parent is None:
                raise Error.ArgumentError("Current QJob object has no parent, hence cannot add "
                                          "waves with QWAVEFORM_FLAG_DO_NOT_CLEAR.")
            elif _realFlag & QWAVEFORM_FLAG_DO_NOT_CLEAR:
                _containerWaves = self.parent.doNotClearFlagWaves
            else:
                _containerWaves = self._waves
            return _realFlag, _containerWaves
 Return Flag or wave container. 
Return Flag or wave container.
Return Flag or wave container .
def _getFlagAndWaveContainer(_wave):
            _realFlag = 0
            if flag is not None:
                _realFlag = flag
            elif _wave.flag is not None:
                _realFlag = _wave.flag
            if (_realFlag & QWAVEFORM_FLAG_DO_NOT_CLEAR) and self.parent is None:
                raise Error.ArgumentError("Current QJob object has no parent, hence cannot add "
                                          "waves with QWAVEFORM_FLAG_DO_NOT_CLEAR.")
            elif _realFlag & QWAVEFORM_FLAG_DO_NOT_CLEAR:
                _containerWaves = self.parent.doNotClearFlagWaves
            else:
                _containerWaves = self._waves
            return _realFlag, _containerWaves
def _getFlagAndWaveContainer ( _wave ) : _realFlag = 0 if flag is not None : _realFlag = flag elif _wave . flag is not None : _realFlag = _wave . flag if ( _realFlag & QWAVEFORM_FLAG_DO_NOT_CLEAR ) and self . parent is None : raise Error . ArgumentError ( "Current QJob object has no parent, hence cannot add " "waves with QWAVEFORM_FLAG_DO_NOT_CLEAR." ) elif _realFlag & QWAVEFORM_FLAG_DO_NOT_CLEAR : _containerWaves = self . parent . doNotClearFlagWaves else : _containerWaves = self . _waves return _realFlag , _containerWaves
Return Flag or wave container.
Return Flag or wave container .
""" Return Flag or wave container. """
_wave