Election Exports#

export_coordinates(election, object_type: str = 'vote') None[source]#

Exports coordinates to a csv file.

Parameters:
  • election – Election

  • object_type (str) – Object type.

Return type:

None

export_distances(election, object_type: str = 'vote') None[source]#

Exports distances to a csv file.

Parameters:
  • election – Election.

  • object_type (str) – Object type.

Return type:

None

export_election_within_experiment(election, is_aggregated: bool = True) None[source]#

Exports election in an .app file

Parameters:
  • election – Election.

  • is_aggregated (bool) – If True then votes are stored in aggregated way.

Return type:

None

export_election_without_experiment(election, path_to_folder, is_aggregated: bool = True) None[source]#

Exports election in an .app file

Parameters:
  • election – Election.

  • path_to_folder – Path to a folder to which the election should be exported.

  • is_aggregated (bool) – If True then votes are stored in aggregated way.

Return type:

None

export_frequency_matrices(experiment) None[source]#

Exports frequency matrices to csv files.

Parameters:

experiment – Experiment.

Return type:

None

export_votes_to_file(election, path, votes=None, is_aggregated=True) None[source]#

Exports votes to a file.

Parameters:
  • election – Election.

  • path – Path to the place in which the file should be stored.

  • votes – Votes.

  • is_aggregated (bool) – If True then votes are stored in aggregated way.

Return type:

None