Esempio n. 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
Esempio n. 2
0
def pcfu(s):
    v = list(map(float, s.split()))
    return sxml.FloatWithUnit(value=float(v[-2]),
                              plus_error=float(v[-1]) or None,
                              minus_error=float(v[-1]) or None)