[misc] May last round of bug corrections

This commit is contained in:
Noe Brucy
2022-05-31 16:15:33 +02:00
parent 6c912a5294
commit 124f24f92c
6 changed files with 129 additions and 107 deletions
+1 -1
View File
@@ -1340,7 +1340,7 @@ class SnapshotProcessor(HDF5Container):
second_line = f.readline()
f.close()
if first_line[1] == "#":
if len(first_line) > 0 and first_line[1] == "#":
header = first_line[3:-2].split(",")
units = second_line[3:-2].split(",")
df = pd.read_csv(csv_name, header=None, names=header, skiprows=2)