def test(rootdir = '/mnt/workspace'):
    import sys
    sys.path.append('/extra/public/python/tools/')
    import readTDMS as tdms
    return tdms.datatdms(rootdir = rootdir)
    import sys
    sys.path.append('/extra/public/python/tools/')
    import readTDMS as tdms
    return tdms.datatdms(rootdir = rootdir)

# <codecell>

r = directview.apply_sync(test, rootdir = rootdir)

# <codecell>

ls -alo $rootdir/data\ LabView

# <codecell>

tdmsfiles = tdms.datatdms(rootdir = rootdir)

# <codecell>

def process_tdmsfile(tdmsfile_info, rerun = False):
    import os, sys
    sys.path.append('/extra/public/python/tools/')
    import readTDMS as tdms
    
    casedir, casename = tdmsfile_info
    
    hdf5name = os.path.join(casedir, casename.replace('.tdms', '.hdf5'))
    
    if rerun == False:
        # skip already converted files
        if os.path.isfile(hdf5name):