Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Schumacher committed Mar 13, 2024
1 parent 555fa90 commit b9c0657
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deprl/vendor/tonic/utils/csv_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b9c0657

Please sign in to comment.