From b839934c04b214c9bdab399628ee2b94a65bcd10 Mon Sep 17 00:00:00 2001 From: leochanj Date: Thu, 22 Oct 2020 23:55:02 -0400 Subject: csv --- run_case_study.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 run_case_study.py (limited to 'run_case_study.py') diff --git a/run_case_study.py b/run_case_study.py new file mode 100644 index 0000000..b960d38 --- /dev/null +++ b/run_case_study.py @@ -0,0 +1,35 @@ +import os +import sys +import re +import csv +def main(): + pathName = sys.argv[1] + all_tasks = [] + levelAB = [] + levelC = [] + with open(pathName+"/all_tasks.csv", "r") as csv_file: + csv_reader = csv.reader(csv_file, delimiter = ',') + line = 0 + for row in csv_reader: + if line > 0: + all_tasks.append(row) + line += 1 + with open(pathName+"/levelAB_pairs.csv", "r") as csv_file: + csv_reader = csv.reader(csv_file, delimiter = ',') + line = 0 + for row in csv_reader: + if line > 0: + levelAB.append(row) + line += 1 + with open(pathName+"/levelC_threads.csv", "r") as csv_file: + csv_reader = csv.reader(csv_file, delimiter = ',') + line = 0 + for row in csv_reader: + if line > 0: + levelC.append(row) + line += 1 + + for task in all_tasks: + print(task[0]) +if __name__ == "__main__": + main() -- cgit v1.2.2