openstv

C#: Generating .BLT Files for OpenSTV Elections

I just downloaded OpenSTV after seeing the most recent SO blog post, regarding the results of the moderator election. Jeff wrote that he used OpenSTV to conduct the election, and supplied a ballot file (.blt) along with it that contains the voting data. My question is: how do you create a .BLT file in C#? Here are two ways that I can ...

Convert rank-per-candidate format to OpenSTV BLT format

I recently gathered, using a questionnaire, a set of opinions on the importance of various software components. Figuring that some form of Condorcet voting method would be the best way to obtain an overall rank, I opted to use OpenSTV to analyze it. My data is in tabular format, space delimited, and looks more or less like: A B C D E...

Calling Python app/script from C#

I'm building an ASP.NET MVC (C#) site where I want to implement STV (Single Transferable Vote) voting. I've used OpenSTV for voting scenarios before, with great success, but I've never used it programmatically. The OpenSTV Google Code project offers a Python script that allows usage of OpenSTV from other applications: import sys sys.pa...