kalebswartz7/excercise_01/parse.py
def populate_matrix_smart(matrix, horizontal, vertical):
    """
    Reads in all non-commented data from file, parses into 2D array based on Horizontal and Vertical Points (using numpy) 

    Parameters
    ----------
    matrix : 2D array 
        array that will be populated by the data parsed in the input file
    horizontal : int 
        # of horizontal rows in matrix
    vertical : int
        # of vertical rows in matrix
    
    Notes
    -----
    
    """
    d = np.loadtxt('res_int_pr_se.dat')
    d2 = d.reshape((vertical, horizontal))
    matrix = d2
    return matrix

    Reads in all non-commented data from file, parses into 2D array based on Horizontal and Vertical Points (using numpy) 

    Parameters
    ----------
    matrix : 2D array 
        array that will be populated by the data parsed in the input file
    horizontal : int 
        # of horizontal rows in matrix
    vertical : int
        # of vertical rows in matrix
    
    Notes
    -----
    
    
Reads in all non-commented data from file, parses into 2D array based on Horizontal and Vertical Points (using numpy)
Parameters

matrix : 2D array
array that will be populated by the data parsed in the input file
horizontal : int
of horizontal rows in matrix
vertical : int
of vertical rows in matrix

Notes
Reads in all non - commented data from file parses into 2D array based on Horizontal and Vertical Points ( using numpy ) Parameters matrix : 2D array array that will be populated by the data parsed in the input file horizontal : int of horizontal rows in matrix vertical : int of vertical rows in matrix Notes
def populate_matrix_smart(matrix, horizontal, vertical):
    d = np.loadtxt('res_int_pr_se.dat')
    d2 = d.reshape((vertical, horizontal))
    matrix = d2
    return matrix
def populate_matrix_smart ( matrix , horizontal , vertical ) : d = np . loadtxt ( 'res_int_pr_se.dat' ) d2 = d . reshape ( ( vertical , horizontal ) ) matrix = d2 return matrix
Reads in all non-commented data from file, parses into 2D array based on Horizontal and Vertical Points (using numpy)
Parameters
Reads in all non - commented data from file parses into 2D array based on Horizontal and Vertical Points ( using numpy ) Parameters
"""
    Reads in all non-commented data from file, parses into 2D array based on Horizontal and Vertical Points (using numpy) 

    Parameters
    ----------
    matrix : 2D array 
        array that will be populated by the data parsed in the input file
    horizontal : int 
        # of horizontal rows in matrix
    vertical : int
        # of vertical rows in matrix
    
    Notes
    -----
    
    """
matrix
horizontal
vertical