import csv
import argparse
import itertools

from thermo_utils import csv_row_writer, read_csv_rows

# Read input/output arguments
parser = argparse.ArgumentParser()
parser.add_argument('-ip','--inputpoints',required=True)
parser.add_argument('-ie','--inputeqns',required=True)
parser.add_argument('-v','--version',required=False)
args = parser.parse_args()
print('Input points file: %s' % args.inputpoints)
print('Input equations file: %s' % args.inputeqns)

# Read in points file
filePts = read_csv_rows(args.inputpoints)

# Read in equations file
fileEqns = read_csv_rows(args.inputeqns)

# Create property vectors from points file
for ptsRow in range(0,len(filePts)):
    filePts[ptsRow]=filePts[ptsRow].split(",")
    if ptsRow>0:
        if filePts[ptsRow][0]=='mdot':
            mdot_v=filePts[ptsRow]
        elif filePts[ptsRow][0]=='h':
            h_v=filePts[ptsRow]
        elif filePts[ptsRow][0]=='T':
            T_v=filePts[ptsRow]
        elif filePts[ptsRow][0]=='P':
            P_v=filePts[ptsRow]
        elif filePts[ptsRow][0]=='s':
            s_v=filePts[ptsRow]

print(mdot_v)
print(h_v)
print(T_v)
print(P_v)
print(s_v)

@@ -594,16 +594,27 @@
  Create 
+horizontal 
 property
@@ -722,11 +722,11 @@
 lit(
-%22,%22
+','
 )%0A  
@@ -1149,12 +1149,277 @@
 %0Aprint(s_v)%0A
+%0A# Create vertical property vectors from equations file%0Afor eqnsRow in range(0,len(fileEqns)):%0A    fileEqns%5BeqnsRow%5D=fileEqns%5BeqnsRow%5D.split(',')%0A    if eqnsRow%3E0:%0A        for eqnsCol in range(0,len(fileEqns%5BeqnsRow%5D)):%0A            print(fileEqns%5B0%5D%5BeqnsCol%5D)%0A    %0A

Add beginnings of equations file parsing