[misc] May last round of bug corrections
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user