batch.analyze_election_set

batch.analyze_election_set(contest_set_path: str, output_path: str, fresh_output=False, print_parsed_contest_set=False) None

Analyze a set of elections. For details see documentation at https://rcv-cruncher.readthedocs.io/en/latest/how-tos/batch.html

Parameters:
  • contest_set_path (str) – Directory containing two files: contest_set.csv, which lists election to analyze and their rules, and run_config.json, which contains the settings specifying which analyses to perform and write out.

  • output_path (str) – Directory where output will be written to.

  • fresh_output (bool, optional) – If True, output folders already present in output_path are deleted, defaults to False

  • print_parsed_contest_set (bool, optional) – If True, the parsed data from the contest set and run config files is printed. Useful for debugging.