Skip to content

Commit

Permalink
Fix csv file writing on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiamarcolini committed Aug 28, 2020
1 parent 2129b92 commit 5d313d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/histolab/tiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def _save_report(
]

with open(report_path, "w+") as f:
w = csv.DictWriter(f, fieldnames=header)
w = csv.DictWriter(f, fieldnames=header, lineterminator=os.linesep)
w.writeheader()
w.writerows(rows)

Expand Down

0 comments on commit 5d313d2

Please sign in to comment.