parsers.unisyn

parsers.unisyn(cvr_path: str | Path) Dict[str, List]

Parser for CVRs received from unisyn systems.

Note: This parser was developed for the unisyn 2020 Hawaii Dem Primary CVR which only contained the ranked choice votes for a single election. Unisyn uses the common data format in xml, however the parser currently is not a complete common data format parser.

For more information on common data format, see: https://pages.nist.gov/CastVoteRecords/ https://github.com/hiltonroscoe/cdfprototype

Parameters:

cvr_path (Union[str, pathlib.Path]) – Directory containing .xml files

Returns:

A dictionary of lists containing informtion in the CVR file. Ranks are combined into per-ballot lists and stored with the key ‘ranks’. A ‘weight’ key and list of 1’s is added to the dictionary if no ‘weight’ column exists. All weights are of type decimal.Decimal.

Return type:

Dict[str, List]