do not clutter comments

This commit is contained in:
Martin Diehl 2020-01-12 02:06:53 +01:00
parent 5bc1c98da7
commit 1315029196
1 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,7 @@ class Table():
Additional, human-readable information. Additional, human-readable information.
""" """
self.comments = ['table.py v {}'.format(version)] if not comments else [c for c in comments] self.comments = [c for c in comments]
self.data = pd.DataFrame(data=data) self.data = pd.DataFrame(data=data)
self.shapes = shapes self.shapes = shapes
self.__label_condensed() self.__label_condensed()
@ -79,8 +79,7 @@ class Table():
else: else:
raise Exception raise Exception
comments = ['table.py:from_ASCII v {}'.format(version)] comments = [f.readline()[:-1] for i in range(1,header)]
comments+= [f.readline()[:-1] for i in range(1,header)]
labels = f.readline().split() labels = f.readline().split()
shapes = {} shapes = {}