voting-tools / pref_voting

pref_voting is a Python package that can be used to study and run elections with different preferential voting methods (graded voting methods and cardinal voting methods are also included for comparison).
https://pref-voting.readthedocs.io/
MIT License
12 stars 4 forks source link

prefsampling code regarding Euclidean spaces has changed #67

Closed DominikPeters closed 7 months ago

DominikPeters commented 7 months ago

EuclideanSpace is not defined anymore in the current version of the prefsampling module. @Simon-Rey

https://github.com/voting-tools/pref_voting/blob/3da023508de791abec895f643eb2167c3501ee71/pref_voting/generate_profiles.py#L25 https://github.com/voting-tools/pref_voting/blob/3da023508de791abec895f643eb2167c3501ee71/pref_voting/generate_profiles.py#L401-L406

epacuit commented 7 months ago

Thanks. I'll update this to use the latest code (point_samplers, etc.)

DominikPeters commented 7 months ago

Cool, thanks. Perhaps worth waiting a few days, I asked Simon whether it would be possible to provide a more straightforward interface for specifying 2D spheres etc. within prefsampling