-
Notifications
You must be signed in to change notification settings - Fork 42
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
Catch UnequalLengths #134
Comments
Thanks for the great issue. I am able to reproduce this with: curl -s https://opendata.dwd.de/weather/local_forecasts/swsmos/swsmos_LATEST_opendata.csv.bz2 | bzcat | head | awk 'NR != 2'| tidy-viewer -s ';' Ill formatted csvs have been on the ticket for a while. It is probably time to tackle the problem. |
Just giving a little update. This is where I will start the error handling Line 367 in e8beee0
There will likely be additional formatting needed for broken lines, but that is the start of it. |
Also wanted to keep this #79 in the loop for this fix. |
Also, I could possibly resurrect #124 |
And maybe #91 |
and #137 |
some more progress with error handeling |
Here I put the error in as a vector. maybe I can handle strings that look like errors in the printout |
I've come across this csv:
tv does not like it due to the second line being just an ISO-ish date string with missing data:
While the csv is clearly at fault, I expect this isn't all that unusual. I would like tv to be able to
For now, I've added
| awk 'NR != 2'
into my pipe to skip the 2nd line explicitly.The text was updated successfully, but these errors were encountered: