Пример #1
0
def pblock_047(content):
    stage_number = -1

    deci = sxml.Decimation(
        input_sample_rate=sxml.Frequency(value=float(get1(content, b'05'))),
        factor=int(get1(content, b'06')),
        offset=int(get1(content, b'07')),
        delay=sxml.FloatWithUnit(value=float(get1(content, b'08'))),
        correction=sxml.FloatWithUnit(value=float(get1(content, b'09'))))

    return stage_number, deci
Пример #2
0
def pblock_053(content):
    stage_number = int(get1(content, b'04'))

    pzs = sxml.PolesZeros(
        pz_transfer_function_type=ptftype(get1(content, b'03')),
        input_units=sxml.Units(name=punit(get1(content, b'05'))),
        output_units=sxml.Units(name=punit(get1(content, b'06'))),
        normalization_factor=float(get1(content, b'07')),
        normalization_frequency=sxml.Frequency(
            value=float(get1(content, b'08'))),
        zero_list=list(map(ppolezero, getn(content, b'10-13'))),
        pole_list=list(map(ppolezero, getn(content, b'15-18'))))

    for i, x in enumerate(pzs.zero_list):
        x.number = i

    for i, x in enumerate(pzs.pole_list):
        x.number = i

    return stage_number, pzs