Exemplo n.º 1
0
def cut_reader4(output, fmt):

    x = MDFreader(r"test.mf4")
    t = x.get_channel_data(list(x.masterChannelList)[0])
    begin, end = 0.2 * (t[-1] - t[0]) + t[0], 0.8 * (t[-1] - t[0]) + t[0]
    with Timer("Cut file", "mdfreader {} mdfv4".format(mdfreader_version),
               fmt) as timer:

        x.cut(begin=begin, end=end)
    output.send([timer.output, timer.error])
Exemplo n.º 2
0
def cut_reader4_nodata(output, fmt):

    x = MDFreader(r'test.mf4', no_data_loading=True)
    t = x.get_channel_data(list(x.masterChannelList)[0])
    begin, end = 0.2 * (t[-1] - t[0]) + t[0], 0.8 * (t[-1] - t[0]) + t[0]
    with Timer('Cut file',
               'mdfreader {} nodata mdfv4'.format(mdfreader_version),
               fmt) as timer:

        x.cut(begin=begin, end=end)
    output.send([timer.output, timer.error])
Exemplo n.º 3
0
def cut_reader4_compression(output, fmt):

    x = MDFreader(r'test.mf4', compression='blosc')
    t = x.get_channel_data(list(x.masterChannelList)[0])
    begin, end = 0.2 * (t[-1] - t[0]) + t[0], 0.8 * (t[-1] - t[0]) + t[0]
    with Timer('Cut file',
               'mdfreader {} compression mdfv4'.format(mdfreader_version),
               fmt) as timer:

        x.cut(begin=begin, end=end)
    output.send([timer.output, timer.error])