add '#' to make the list of headers a comment

This commit is contained in:
Axel Kohlmeyer
2022-03-16 12:55:53 -04:00
parent b774464156
commit 72425f1874

View File

@ -176,6 +176,7 @@ class log:
# write col names from dict in the right order # write col names from dict in the right order
if writenames: if writenames:
print("# ", file=f, end="")
colnames = [k for j in colmap for k,v in self.ptr.items() if v == j] colnames = [k for j in colmap for k,v in self.ptr.items() if v == j]
for j in range(len(colnames)): for j in range(len(colnames)):
print(colnames[j], file=f, end=" ") print(colnames[j], file=f, end=" ")