Skip to content

Commit

Permalink
fix header writing
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Jun 22, 2021
1 parent 4026855 commit 41438a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sourmash/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def write_csv_header(cls, fp):
w = csv.DictWriter(fp, fieldnames=cls.required_keys)
w.writeheader()

def write_to_csv(self, fp, write_header=False):
def write_to_csv(self, fp, *, write_header=False):
"write manifest CSV to specified file handle"
w = csv.DictWriter(fp, fieldnames=self.required_keys)

Expand Down
2 changes: 1 addition & 1 deletion src/sourmash/sourmash_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def close(self):
manifest_name = f"SOURMASH-MANIFEST.csv"

manifest_fp = StringIO()
manifest.write_to_csv(manifest_fp)
manifest.write_to_csv(manifest_fp, write_header=True)
manifest_data = manifest_fp.getvalue().encode("utf-8")

self.storage.save(manifest_name, manifest_data, overwrite=True)
Expand Down

0 comments on commit 41438a6

Please sign in to comment.