Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 22, 2024
1 parent 42815db commit 5aa5465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eye2bids/edf2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ def edf2bids(
extension="tsv.gz",
)

content = eyetrack_tsv.to_csv(sep='\t', index=False, na_rep="n/a")
with gzip.open(output_filename, 'wb') as f:
content = eyetrack_tsv.to_csv(sep="\t", index=False, na_rep="n/a")
with gzip.open(output_filename, "wb") as f:
f.write(content.encode())

e2b_log.info(f"file generated: {output_filename}")
Expand Down

0 comments on commit 5aa5465

Please sign in to comment.