rename into english
This commit is contained in:
@@ -31,7 +31,7 @@ def arrange_votes_by_candidate(votes,candidates,default_mention):
|
|||||||
vpc[candidate]=[vote[candidate] if candidate in vote else default_mention for vote in votes]
|
vpc[candidate]=[vote[candidate] if candidate in vote else default_mention for vote in votes]
|
||||||
return vpc
|
return vpc
|
||||||
|
|
||||||
def jugement_majoritaire(poll):
|
def majority_judgment_run(poll):
|
||||||
|
|
||||||
verbose=False
|
verbose=False
|
||||||
crosscheck=True
|
crosscheck=True
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
from jugement_majoritaire import jugement_majoritaire
|
from majority_judgment_method import majority_judgment_run
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
poll_file=sys.argv[1]
|
poll_file=sys.argv[1]
|
||||||
@@ -16,6 +16,6 @@ with open(poll_file,'r') as poll_fd:
|
|||||||
if verbose:
|
if verbose:
|
||||||
print(poll)
|
print(poll)
|
||||||
|
|
||||||
result = jugement_majoritaire(poll)
|
result = majority_judgment_run(poll)
|
||||||
|
|
||||||
print(json.dumps(result))
|
print(json.dumps(result))
|
||||||
|
|||||||
Reference in New Issue
Block a user