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

Skip input ascii records with not enough columns #7891

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Conversation

PaulWessel
Copy link
Member

See discussion on the forum post. This simply skips the bad line(s) rather than exit.

cat << EOF > t.txt
> First line
1 2 3
4 5
3 2 1
> second
6 5
6 7 8
9 9 9
EOF

gmt convert t.txt
gmtconvert [WARNING]: Mismatch between actual (2) and expected (3) fields near line 3 in file t.txt
gmtconvert [WARNING]: Mismatch between actual (2) and expected (3) fields near line 6 in file t.txt
> First line
1	2	3
3	2	1
> second
6	7	8
9	9	9

See distussion on the forum post.  This simply skips the bad line(s) rather than exit.
@PaulWessel PaulWessel added the maintenance Boring but important stuff for the core devs label Oct 9, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Oct 9, 2023
@PaulWessel PaulWessel self-assigned this Oct 9, 2023
@PaulWessel PaulWessel changed the title WIP Skip input ascii records with not enough columns Skip input ascii records with not enough columns Oct 9, 2023
@PaulWessel PaulWessel merged commit 67e2254 into master Oct 9, 2023
6 checks passed
@PaulWessel PaulWessel deleted the skip-lines branch October 9, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants