# -*- coding: utf-8 -*-
"""
Created on Wed Jun  5 14:35:43 2013

@author: jhdavis
"""
import sys
import qMS

if __name__ == '__main__':
    try:
        isoPath = sys.argv[1]
        genPlots = False
        if len(sys.argv) == 3:
            genPlots = qMS.boolParse(sys.argv[2])
    except IndexError:
        errMsg = "Invalid input! include the full path to the file to be read as well as\n"
        errMsg = errMsg + "optionally include T/F to output plot data"
        sys.exit(errMsg)
    dataFrame = qMS.preProcessIsoCSV(isoPath, p, genPlots)
# -*- coding: utf-8 -*-
"""
Created on Sun Jun  8 10:25:03 2014

@author: jhdavis
"""

import qMS
import glob
import sys

pd.options.mode.chained_assignment = None
processDirectory = str(sys.argv[1])
listToProcess=glob.glob(processDirectory+'/*_iso.csv')
for f in listToProcess:
    print 'processing' + f
    sys.stdout.flush()
    qMS.preProcessIsoCSV(f, True)