qcodes/instrument_drivers/tektronix/AWGFileParser.py
def _parser2(waveformlist: List[List[Any]]) -> Dict[str, Dict[str, np.ndarray]]:
    """
    Cast the waveformlist from _parser1 into a dict used by _parser3.

    Args:
        waveformlist: A list of lists of waveforms from ``_parser1``

    Returns:
        dict: A dictionary with keys waveform name and values for marker1,
            marker2, and the waveform as np.arrays
    """

    outdict = {}

    for (fieldname, fieldvalue) in zip(waveformlist[0], waveformlist[1]):
        if 'NAME' in fieldname:
            name = fieldvalue
        if 'DATA' in fieldname:
            value = _unpacker(fieldvalue)
            outdict.update({name: {'m1': value[1], 'm2': value[2],
                                   'wfm': value[0]}})

    return outdict

    Cast the waveformlist from _parser1 into a dict used by _parser3.

    Args:
        waveformlist: A list of lists of waveforms from ``_parser1``

    Returns:
        dict: A dictionary with keys waveform name and values for marker1,
            marker2, and the waveform as np.arrays
    
Cast the waveformlist from _parser1 into a dict used by _parser3.
Cast the waveformlist from _parser1 into a dict used by _parser3 .
def _parser2(waveformlist: List[List[Any]]) -> Dict[str, Dict[str, np.ndarray]]:
    outdict = {}
    for (fieldname, fieldvalue) in zip(waveformlist[0], waveformlist[1]):
        if 'NAME' in fieldname:
            name = fieldvalue
        if 'DATA' in fieldname:
            value = _unpacker(fieldvalue)
            outdict.update({name: {'m1': value[1], 'm2': value[2],
                                   'wfm': value[0]}})
    return outdict
def _parser2 ( waveformlist : List [ List [ Any ] ] ) -> Dict [ str , Dict [ str , np . ndarray ] ] : outdict = { } for ( fieldname , fieldvalue ) in zip ( waveformlist [ 0 ] , waveformlist [ 1 ] ) : if 'NAME' in fieldname : name = fieldvalue if 'DATA' in fieldname : value = _unpacker ( fieldvalue ) outdict . update ( { name : { 'm1' : value [ 1 ] , 'm2' : value [ 2 ] , 'wfm' : value [ 0 ] } } ) return outdict
Cast the waveformlist from _parser1 into a dict used by _parser3.
Cast the waveformlist from _parser1 into a dict used by _parser3 .
"""
    Cast the waveformlist from _parser1 into a dict used by _parser3.

    Args:
        waveformlist: A list of lists of waveforms from ``_parser1``

    Returns:
        dict: A dictionary with keys waveform name and values for marker1,
            marker2, and the waveform as np.arrays
    """
A dictionary with keys waveform name and values for marker1,
marker2, and the waveform as np.arrays
A dictionary with keys waveform name and values for marker1 marker2 and the waveform as np . arrays
dict
waveformlist
List[List[Any]]
A list of lists of waveforms from ``_parser1``
A list of lists of waveforms from ` ` _parser1 ` `