-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Allow voters to be weighted #1
Comments
Hi @DominikPeters, |
Hi! Thanks for working on this, looking promising! I would probably place it in the second column and make sure to use a number type for the
If you have any questions, feel free to ask! |
Regarding the second point: what format do you suggest for adding weights to files? P.S. the term "weight" gives the impression that it can also be fractional. Is there a meaning to fractional weight (e.g. voters with different entitlements)? If not, then maybe it is better to use "count" or "amount"? |
The |
So the GUI should allow fractional weights? |
Some of the example code uses cloning, for example here:
I suggest to change the format so that weights can be used, to pairs (approval-set, weight), e.g.:
|
Hi @DominikPeters, I've added the weights case to How do you suggest handling rules that don't support weights? Maybe we could start by adding a boolean value to the |
Yes, putting it into |
@DominikPeters What should be done when the input contains weights, but some of the active rules do not support weights? I see three options:
|
I would say that loading a weighted input should toggle the weight mode on. Whenever the weight mode is turned on (via loading or by the user from the menu), then all rules that do not have weight implementations should be turned off (and their checkboxes disabled/grayed out in the rule selection modal), and are thereby not displayed anymore in the table. |
Where can we find examples of files with weighted inputs? So that we know the format. |
Have a look at the tests of the abcvoting package. |
Hi @DominikPeters, |
Sorry for slow response. Yes, it needs to be changed. Maybe the overall best approach is to parse the string inside |
Fyi, I've updated the app to use the current version of |
How do you suggest handling URL copying when users use weights? |
How about turning
into
for weights |
Looks good! Do you think we should add a flag before the matrix that indicates if we need to decode and load the matrix with weights? |
I think there might be a problem with reading non-integer weights unless we define the weights to always be represented in the same foramt (with two decimal points for example). |
If you split by the character "*", there should not be a problem, even if there is a decimal dot in one of the parts. |
I've used |
This is supported by the underlying abcvoting library and would make constructing examples easier. The best UI is not clear though. To not clutter, it should probably be shown optionally.
The text was updated successfully, but these errors were encountered: