Ejemplo n.º 1
0
def get_all_reader4(output, fmt):

    x = MDFreader(r'test.mf4')
    with Timer('Get all channels',
               'mdfreader {} mdfv4'.format(mdfreader_version), fmt) as timer:
        for s in x:
            x.getChannelData(s)
    output.send([timer.output, timer.error])
Ejemplo n.º 2
0
def get_all_reader3(path, output, fmt):
    os.chdir(path)
    x = MDFreader(r'test.mdf')
    with Timer('Get all channels',
               'mdfreader {} mdfv3'.format(mdfreader_version), fmt) as timer:
        for s in x:
            x.getChannelData(s)
    output.send([timer.output, timer.error])
Ejemplo n.º 3
0
def get_all_reader3_nodata(output, fmt):

    x = MDFreader(r'test.mdf', noDataLoading=True)
    with Timer('Get all channels',
               'mdfreader {} nodata mdfv3'.format(mdfreader_version),
               fmt) as timer:
        for s in x:
            x.getChannelData(s)
    output.send([timer.output, timer.error])
Ejemplo n.º 4
0
def get_all_reader4_compression_bcolz(path, output, fmt):
    os.chdir(path)
    x = MDFreader(r'test.mf4', compression=6)
    with Timer('Get all channels',
               'mdfreader {} compress bcolz 6 mdfv4'.format(mdfreader_version),
               fmt) as timer:
        for s in x:
            x.getChannelData(s)
    output.send([timer.output, timer.error])
Ejemplo n.º 5
0
def get_all_reader4_nodata(path, output, fmt):
    os.chdir(path)
    x = MDFreader(r'test.mf4', noDataLoading=True)
    with Timer('Get all channels',
               'mdfreader {} nodata mdfv4'.format(mdfreader_version),
               fmt) as timer:
        for s in x:
            x.getChannelData(s)
    output.send([timer.output, timer.error])
Ejemplo n.º 6
0
def get_all_reader3_compression(output, fmt):

    x = MDFreader(r'test.mdf', compression='blosc')
    with Timer('Get all channels',
               'mdfreader {} compress mdfv3'.format(mdfreader_version),
               fmt) as timer:
        for s in x:
            x.getChannelData(s)

        with open('D:\\TMP\\f.txt', 'w') as f:
            f.write('OK')
    output.send([timer.output, timer.error])
Ejemplo n.º 7
0
def get_all_reader3_compression_bcolz():
    os.chdir(path)
    x = MDFreader(r'test.mdf', compression=6)
    with Timer('mdfreader {} compression bcolz 6 mdfv3'.format(
            mdfreader_version)):
        for s in x:
            y = x.getChannelData(s)
Ejemplo n.º 8
0
def all_reader4_nodata():
    os.chdir(path)
    with Timer('mdfreader {} noDataLoading mdfv4'.format(mdfreader_version)):
        x = MDFreader(r'test.mf4', noDataLoading=True)
        for s in x:
            y = x.getChannelData(s)
        x.write('x.mf4')
Ejemplo n.º 9
0
def all_reader4():
    os.chdir(path)
    with Timer('mdfreader {} mdfv4'.format(mdfreader_version)):
        x = MDFreader(r'test.mf4')
        for s in x:
            y = x.getChannelData(s)
        x.write('x.mf4')
Ejemplo n.º 10
0
def get_all_reader3():
    os.chdir(path)
    x = MDFreader(r'test.mdf')
    with Timer('mdfreader {} mdfv3'.format(mdfreader_version)):
        for s in x:
            y = x.getChannelData(s)
Ejemplo n.º 11
0
def get_all_reader3_nodata():
    os.chdir(path)
    x = MDFreader(r'test.mdf', noDataLoading=True)
    with Timer('mdfreader {} nodata mdfv3'.format(mdfreader_version)):
        for s in x:
            y = x.getChannelData(s)
Ejemplo n.º 12
0
def get_all_reader4_compression():
    os.chdir(path)
    x = MDFreader(r'test.mf4', compression='blosc')
    with Timer('mdfreader {} compression mdfv4'.format(mdfreader_version)):
        for s in x:
            y = x.getChannelData(s)