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

        :param base64Str: a input base64 encoded string
        :return: returned QWaveform object
        """
        byteStr = base64.b64decode(base64Str.encode())
        obj = pickle.loads(byteStr)  # type: QWaveform
        # For compatibility with previous versions
        if not hasattr(obj, "freq"):
            obj.freq = obj.omega if hasattr(obj, "omega") else None
        if not hasattr(obj, "phase0"):
            obj.phase0 = obj.phi if hasattr(obj, "phi") else None
        if not hasattr(obj, "phase"):
            obj.phase = None
        return obj

        Create object from base64 encoded string.

        :param base64Str: a input base64 encoded string
        :return: returned QWaveform object
        
Create object from base64 encoded string.
Create object from base64 encoded string .
def load(base64Str: str) -> 'QWaveform':
        byteStr = base64.b64decode(base64Str.encode())
        obj = pickle.loads(byteStr)  
        if not hasattr(obj, "freq"):
            obj.freq = obj.omega if hasattr(obj, "omega") else None
        if not hasattr(obj, "phase0"):
            obj.phase0 = obj.phi if hasattr(obj, "phi") else None
        if not hasattr(obj, "phase"):
            obj.phase = None
        return obj
def load ( base64Str : str ) -> 'QWaveform' : byteStr = base64 . b64decode ( base64Str . encode ( ) ) obj = pickle . loads ( byteStr ) if not hasattr ( obj , "freq" ) : obj . freq = obj . omega if hasattr ( obj , "omega" ) else None if not hasattr ( obj , "phase0" ) : obj . phase0 = obj . phi if hasattr ( obj , "phi" ) else None if not hasattr ( obj , "phase" ) : obj . 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 input base64 encoded string
        :return: returned QWaveform object
        """ # type: QWaveform # For compatibility with previous versions
returned QWaveform object
returned QWaveform object
base64Str
str
a input base64 encoded string
a input base64 encoded string