-
Notifications
You must be signed in to change notification settings - Fork 19
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
allow missing CVR headers #818
Conversation
Do we need to then add some basic validation checks to make sure that each candidate column has characters? I created a .csv generic_csv_test_cvr_2.csv that has a blank candidate name and I get the following error. |
Good catch -- yes, will need to fix that. |
f0f4b40
to
ec6879d
Compare
Fixed -- it took a bit more work than expected, the built-in header parser really doesn't like null header names, even though it's fairly common practice in CVRs/Spreadsheets to have empty headers...go ahead and give this a whirl? |
src/test/resources/network/brightspots/rcv/test_data/generic_csv_test/generic_csv_test_cvr.csv
Outdated
Show resolved
Hide resolved
43ffd86
to
e92bf84
Compare
closes #813
This type of CSV is allowed and I don't see a reason to not support it. Added a test to account for it.
Because
getHeaderNames
skips all null/empty columns, I had to move away from using the built-in header parser.I also put the
Generic CSV Writer
behind aencounteredSourceProblem
flag since it will lead to more exceptions on failure.