SOLPSutils.py
def readProf(fname, wdir='.'):
    """
    reads contents of text file into two lists, returns them as numpy arrays
    """

    fname = path.join(wdir, fname)
    x, y = [], []

    with open(fname) as f:
        lines = f.readlines()

    for line in lines:
        elements = line.split()

        if elements[0] == '#':
            pass
        else:
            x.append(float(elements[0]))
            y.append(float(elements[1]))

    return x, y

    reads contents of text file into two lists, returns them as numpy arrays
    
reads contents of text file into two lists, returns them as numpy arrays
reads contents of text file into two lists returns them as numpy arrays
def readProf(fname, wdir='.'):
    fname = path.join(wdir, fname)
    x, y = [], []
    with open(fname) as f:
        lines = f.readlines()
    for line in lines:
        elements = line.split()
        if elements[0] == '#':
            pass
        else:
            x.append(float(elements[0]))
            y.append(float(elements[1]))
    return x, y
def readProf ( fname , wdir = '.' ) : fname = path . join ( wdir , fname ) x , y = [ ] , [ ] with open ( fname ) as f : lines = f . readlines ( ) for line in lines : elements = line . split ( ) if elements [ 0 ] == '#' : pass else : x . append ( float ( elements [ 0 ] ) ) y . append ( float ( elements [ 1 ] ) ) return x , y
reads contents of text file into two lists, returns them as numpy arrays
reads contents of text file into two lists returns them as numpy arrays
"""
    reads contents of text file into two lists, returns them as numpy arrays
    """
fname
wdir