From b9c0657e8d5e492110c32f1d6150e47c8c93ffdc Mon Sep 17 00:00:00 2001 From: Pierre Schumacher Date: Wed, 13 Mar 2024 11:18:09 -0400 Subject: [PATCH] linting --- deprl/vendor/tonic/utils/csv_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deprl/vendor/tonic/utils/csv_utils.py b/deprl/vendor/tonic/utils/csv_utils.py index 3138563..a29840b 100644 --- a/deprl/vendor/tonic/utils/csv_utils.py +++ b/deprl/vendor/tonic/utils/csv_utils.py @@ -29,6 +29,10 @@ def load_csv_to_dict(csv_path): data = load_csv(csv_path) keys = data[0] data = data[1:] - data = [list(map(float, x)) for x in data if x[0] != "None" and all(val != '' for val in x)] + data = [ + list(map(float, x)) + for x in data + if x[0] != "None" and all(val != "" for val in x) + ] data = {k: [x[idx] for x in data] for idx, k in enumerate(keys)} return data