Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hfb test and windows to.csv() tpl write fix #80

Merged
merged 3 commits into from
Jun 8, 2019

Conversation

briochh
Copy link
Collaborator

@briochh briochh commented Jun 7, 2019

I started adding this test ages back after running into issues with my hfb template files.

Turns out my issue was related to a pandas update (0.24) where the line end interpretation had changes for windows (see pandas-dev/pandas#25048)

So this PR also includes the (tiny) fix for that issue. When opening the file handle for writing (and eventually writing with pandas.to_csv()) we need to explicitly set the newline argument to newline = ''. Otherwise line terminators get written twice when writing out the csv.

Hopefully this wont have any unintented consequences for those on more sensible OS.

@coveralls
Copy link

coveralls commented Jun 7, 2019

Coverage Status

Coverage increased (+0.4%) to 77.725% when pulling 9d4be90 on briochh:hotfix_hfb_pd_lineend into b856e93 on jtwhite79:develop.

@jwhite-usgs jwhite-usgs merged commit 9412475 into pypest:develop Jun 8, 2019
@briochh briochh deleted the hotfix_hfb_pd_lineend branch June 9, 2019 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants