lib/redred.py
def import_file(filename, content = 'Daten'):
    """Import data aquired with RedRed software
    returns data as [time,trace]"""
    MData = sp.io.loadmat(filename)    #load matlab file
    output = []
    if filename == 't-cal.mat':
        pass
    else:
        try :
            output = MData[content]
        except KeyError:
            print('KeyError: \nNo key "' + content + '" found in ' + filename)
        if content == 'Daten':
            x=[[],[]]
            x[0] = output[2] #assign time axis
            x[1] = output[0] #assgin data axis
            output = x
        return(output)
Import data aquired with RedRed software
    returns data as [time,trace]
Import data aquired with RedRed software
returns data as [time,trace]
Import data aquired with RedRed software returns data as [ time trace ]
def import_file(filename, content = 'Daten'):
    MData = sp.io.loadmat(filename)    
    output = []
    if filename == 't-cal.mat':
        pass
    else:
        try :
            output = MData[content]
        except KeyError:
            print('KeyError: \nNo key "' + content + '" found in ' + filename)
        if content == 'Daten':
            x=[[],[]]
            x[0] = output[2] 
            x[1] = output[0] 
            output = x
        return(output)
def import_file ( filename , content = 'Daten' ) : MData = sp . io . loadmat ( filename ) output = [ ] if filename == 't-cal.mat' : pass else : try : output = MData [ content ] except KeyError : print ( 'KeyError: \nNo key "' + content + '" found in ' + filename ) if content == 'Daten' : x = [ [ ] , [ ] ] x [ 0 ] = output [ 2 ] x [ 1 ] = output [ 0 ] output = x return ( output )
Import data aquired with RedRed software
returns data as [time,trace]
Import data aquired with RedRed software returns data as [ time trace ]
"""Import data aquired with RedRed software
    returns data as [time,trace]""" #load matlab file #assign time axis #assgin data axis
filename
content