Merge pull request #2 from tsukimiya/add-gitignore
Remove history.tsv from the repository Fixed a problem in which writing the header line failed if history.tsv did not exist.pull/10/head
commit
44b0b28b2a
|
|
@ -0,0 +1 @@
|
|||
/csv/history.tsv
|
||||
|
|
@ -1 +0,0 @@
|
|||
model_A model_A_hash model_B model_B_hash model_O model_O_hash base_alpha weight_name weight_values
|
||||
|
|
|
@ -32,8 +32,8 @@ class MergeHistory():
|
|||
|
||||
if not os.path.exists(self.filepath):
|
||||
with open(self.filepath, "w", newline="", encoding="utf-8") as f:
|
||||
wr = writer(f, fieldnames=HEADERS, delimiter='\t')
|
||||
wr.writerow(HEADERS)
|
||||
wr = DictWriter(f, fieldnames=HEADERS, delimiter='\t')
|
||||
wr.writeheader()
|
||||
# save to file
|
||||
with open(self.filepath, "a", newline="", encoding='utf-8') as f:
|
||||
dictwriter = DictWriter(f, fieldnames=HEADERS, delimiter='\t')
|
||||
|
|
|
|||
Loading…
Reference in New Issue