rcv icon indicating copy to clipboard operation
rcv copied to clipboard

rctab_cvr: when isMaxRankingSetToMaximum is true inspect CVRs to determine number of columns in rctab_cvr

Open yezr opened this issue 1 year ago • 0 comments

config: skip test.json cvr: skip tester cvr.xlsx

What happened

I was testing whether an empty cell would be interpreted in an ES&S CVR as an undervote in the rctab_cvr. I had a CVR with 5 possible rankings. RCTab had 2 candidates configured. When I inspected the rctab_cvr I only saw two columns of rankings.

two_candidates_rctab_cvr.csv

Looking at the code, it looks like when isMaxRankingSetToMaximum is true it defaults to the number of rctab_cvr ranking columns to the number of configured candidates.

What I expect

I would expect the rctab_cvr to look through all the CVRs it knows about, find the maximum number of rankings that any CVR has, and use that as the default for the number of rankings to show in the rctab_cvr. This ensures that all rankings RCTab knows about show up in the rctab_cvr.

yezr avatar Oct 18 '24 18:10 yezr