Quanlse/QWaveform.py
def load(base64Str: str) -> 'QJobList':
        """
        Create object from base64 encoded string.

        :param base64Str: a base64 encoded string
        :return: a QJobList object
        """
        byteStr = base64.b64decode(base64Str.encode())
        obj = pickle.loads(byteStr)  # type: QJobList
        # For compatibility with previous versions
        for job in obj.jobs:
            for opKey in job.waves.keys():
                for wave in job.waves[opKey]:
                    if not hasattr(wave, "freq"):
                        wave.freq = wave.omega if hasattr(wave, "omega") else None
                    if not hasattr(wave, "phase0"):
                        wave.phase0 = wave.phi if hasattr(wave, "phi") else None
                    if not hasattr(wave, "phase"):
                        wave.phase = None
        return obj

        Create object from base64 encoded string.

        :param base64Str: a base64 encoded string
        :return: a QJobList object
        
Create object from base64 encoded string.
Create object from base64 encoded string .
def load(base64Str: str) -> 'QJobList':
        byteStr = base64.b64decode(base64Str.encode())
        obj = pickle.loads(byteStr)  
        for job in obj.jobs:
            for opKey in job.waves.keys():
                for wave in job.waves[opKey]:
                    if not hasattr(wave, "freq"):
                        wave.freq = wave.omega if hasattr(wave, "omega") else None
                    if not hasattr(wave, "phase0"):
                        wave.phase0 = wave.phi if hasattr(wave, "phi") else None
                    if not hasattr(wave, "phase"):
                        wave.phase = None
        return obj
def load ( base64Str : str ) -> 'QJobList' : byteStr = base64 . b64decode ( base64Str . encode ( ) ) obj = pickle . loads ( byteStr ) for job in obj . jobs : for opKey in job . waves . keys ( ) : for wave in job . waves [ opKey ] : if not hasattr ( wave , "freq" ) : wave . freq = wave . omega if hasattr ( wave , "omega" ) else None if not hasattr ( wave , "phase0" ) : wave . phase0 = wave . phi if hasattr ( wave , "phi" ) else None if not hasattr ( wave , "phase" ) : wave . phase = None return obj
Create object from base64 encoded string.
Create object from base64 encoded string .
"""
        Create object from base64 encoded string.

        :param base64Str: a base64 encoded string
        :return: a QJobList object
        """ # type: QJobList # For compatibility with previous versions
a QJobList object
a QJobList object
base64Str
str
a base64 encoded string
a base64 encoded string