Election Imports#

import_coordinates(experiment_id: str, election_id: str, object_type: str = 'vote') ndarray[source]#

Imports coordinates from a csv file.

Parameters:
  • experiment_id (str) – Name of the experiment.

  • election_id (str) – Name of the election.

  • object_type (str) – Object type.

Returns:

Distances.

Return type:

np.ndarray

import_distances(experiment_id: str, election_id: str, object_type: str = 'vote') ndarray[source]#

Imports distances from a csv file.

Parameters:
  • experiment_id (str) – Name of the experiment.

  • election_id (str) – Name of the election.

  • object_type (str) – Object type.

Returns:

Distances.

Return type:

np.ndarray

import_fake_app_election(experiment_id: str, name: str)[source]#

Import fake approval election from .app file

import_fake_soc_election(experiment_id: str, name: str)[source]#

Import fake ordinal election form .soc file

import_real_new_app_election(experiment_id: str | None = None, election_id: str | None = None, is_shifted: bool = False, file_ending=4)[source]#

Import real approval election form .app file

import_real_new_soc_election(experiment_id: str | None = None, election_id: str | None = None, is_shifted=False, file_ending=4)[source]#

Import real ordinal election form .soc file

import_real_old_app_election(experiment_id: str, election_id: str, is_shifted: bool = False)[source]#

Import real approval election from .app file

import_real_old_soc_election(experiment_id: str | None = None, election_id: str | None = None, is_shifted=False)[source]#

Import real ordinal election form .soc file