-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
3,283 additions
and
4,472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
__author__ = "Simon Rey and Stanisław Szufa" | ||
__email__ = "[email protected]" | ||
__version__ = "0.1.15" | ||
__version__ = "0.1.16" | ||
|
||
from enum import Enum | ||
from itertools import chain | ||
|
||
from prefsampling.approval import SetDistance | ||
from prefsampling.ordinal import TreeSampler | ||
from prefsampling.core.euclidean import EuclideanSpace | ||
|
||
|
||
class CONSTANTS(Enum): | ||
"""All constants of the package""" | ||
|
||
_ignore_ = "member cls" | ||
cls = vars() | ||
for member in chain(list(TreeSampler), list(SetDistance)): | ||
for member in chain(list(TreeSampler), list(SetDistance), list(EuclideanSpace)): | ||
if member.name in cls: | ||
raise ValueError( | ||
f"The name {member.name} is used in more than one enumeration. The" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.