From 6bb072eb2c3e55d1f69c166471a3b1d50e96aa5a Mon Sep 17 00:00:00 2001 From: JRPAN <25518778+JRPan@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:48:07 -0400 Subject: [PATCH] no longer needed 'U' in open csv --- util/plotting/plot-correlation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/plotting/plot-correlation.py b/util/plotting/plot-correlation.py index 5cbc8752a..a92722c6d 100755 --- a/util/plotting/plot-correlation.py +++ b/util/plotting/plot-correlation.py @@ -487,7 +487,7 @@ def get_sim_csv_data(filepath, logger): def parse_hw_csv_2(csv_file, hw_data, appargs, kdata, logger): cfg = None - with open(csv_file, 'rU') as data_file: + with open(csv_file, 'r') as data_file: logger.log("Parsing HW csv file {0}".format(csv_file)) reader = csv.reader(data_file) # define reader object state = "start" @@ -534,7 +534,7 @@ def parse_hw_csv(csv_file, hw_data, appargs, kdata, logger): cfg = "" cfg_col = None - with open(csv_file, 'rU') as data_file: + with open(csv_file, 'r') as data_file: logger.log("Parsing HW csv file {0}".format(csv_file)) reader = csv.reader(data_file) # define reader object state = "start"