parsers.ess2¶
- parsers.ess2(cvr_path: str | Path) Dict[str, List]¶
Parser for another format of ES&S CVR files.
- Parameters:
cvr_path (Union[str, pathlib.Path]) – Directory containing “*allot*.txt” files and “*ntl*.txt” 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]