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

pygmt.filter1d: Fix the bug that the first line is read as headers #2780

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

seisman
Copy link
Member

@seisman seisman commented Oct 30, 2023

Description of proposed changes

The test test_filter1d_no_outfile should return a result with 671 lines, rather than 670 lines. This can be confirmed by the equivalent GMT CLI:

$ gmt filter1d @MaunaLoa_CO2.txt -Fg5  | gmt info
<Standard Input>: N = 671	<1960.7077/2016.7896>	<317.039650418/404.770728537>

The bug is because we forgot to set header=None when reading the result from the temporary CSV file.

@seisman seisman added this to the 0.11.0 milestone Oct 30, 2023
@seisman seisman added bug Something isn't working needs review This PR has higher priority and needs review. labels Oct 30, 2023
@seisman seisman changed the title filter1d: Fix the bug that the first line is read as headers pygmt.filter1d: Fix the bug that the first line is read as headers Oct 31, 2023
@seisman seisman removed the needs review This PR has higher priority and needs review. label Oct 31, 2023
@seisman seisman merged commit c42def1 into main Oct 31, 2023
15 checks passed
@seisman seisman deleted the fitler1d/header branch October 31, 2023 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants