示例#1
0
def pblock_057(content):
    stage_number = int(get1(content, '03'))

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

    return stage_number, deci
示例#2
0
def pcfu(s):
    v = map(float, s.split())
    return fs.FloatWithUnit(value=float(v[-2]),
                            plus_error=float(v[-1]) or None,
                            minus_error=float(v[-1]) or None)