def merge_reader_v4_compress(path, output, fmt): os.chdir(path) files = [r'test.mf4', ] * 2 with Timer('Merge files', 'mdfreader {} compress v4'.format(mdfreader_version), fmt) as timer: x1 = MDFreader(files[0], compression='blosc') x1.resample(0.01) x2 = MDFreader(files[1], compression='blosc') x2.resample(0.01) x1.mergeMdf(x2) output.send([timer.output, timer.error])
def merge_reader_v4(path, output, fmt): files = [r'test.mf4', ] * 2 os.chdir(path) with Timer('Merge files', 'mdfreader {} v4'.format(mdfreader_version), fmt) as timer: x1 = MDFreader(files[0]) x1.resample(0.01) x2 = MDFreader(files[1]) x2.resample(0.01) x1.mergeMdf(x2) output.send([timer.output, timer.error])
def merge_reader_v4_nodata(output, fmt): files = [ r'test.mf4', ] * 3 with Timer('Merge 3 files', 'mdfreader {} nodata v4'.format(mdfreader_version), fmt) as timer: x1 = MDFreader(files[0], noDataLoading=True) x1.resample(0.01) x2 = MDFreader(files[1], noDataLoading=True) x2.resample(0.01) x1.mergeMdf(x2) output.send([timer.output, timer.error])
def merge_reader_v4_compress(output, fmt, size): files = [r'test.mf4', ] * 3 with Timer('Merge 3 files', 'mdfreader {} compress v4'.format(mdfreader_version), fmt) as timer: x1 = MDFreader(files[0], compression='blosc') x1.resample(0.01) x2 = MDFreader(files[1], compression='blosc') x2.resample(0.01) x1.mergeMdf(x2) x2 = MDFreader(files[2]) x2.resample(0.01) x1.mergeMdf(x2) output.send([timer.output, timer.error])
def merge_reader_v3(output, fmt): files = [r'test.mdf', ] * 3 with Timer('Merge 3 files', 'mdfreader {} v3'.format(mdfreader_version), fmt) as timer: x1 = MDFreader(files[0]) x1.resample(0.01) x2 = MDFreader(files[1]) x2.resample(0.01) x1.mergeMdf(x2) x2 = MDFreader(files[2]) x2.resample(0.01) x1.mergeMdf(x2) output.send([timer.output, timer.error])