-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow lineterminator specification in MetricWriter (#220)
I stumbled upon the fact that `csv.DictWriter` uses windows new line endings by default. This PR lets you change that when using `MetricWriter`. I'm arguing for the default to be `"\n"` instead of `os.linesep` because: - [Python has universal new line support](https://peps.python.org/pep-0278/) (so it doesn't care what we do) - If you're working on a shared analysis and checking in files to version control, you don't want to worry about if you're running on the same OS as your collaborator - In my experience, more bioinformatics tools have problems with windows line endings than with unix line endings
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters