File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def run(self):
20
20
21
21
setup (
22
22
name = "vania" ,
23
- version = "0.1.0 " ,
23
+ version = "0.1.1 " ,
24
24
description = "A module to fairly distribute objects among targets considering weights." ,
25
25
license = "MIT" ,
26
26
author = "Hackathonners" ,
Original file line number Diff line number Diff line change @@ -42,19 +42,19 @@ def validate(self):
42
42
def _validate (self ):
43
43
if len (self ._weights ) != len (self ._targets ):
44
44
raise ValueError (
45
- "The number of lines on the weights should match the targets' length " )
45
+ "The amount of weight lines should match the amount of targets " )
46
46
47
47
# All values should be positive
48
48
s = list (
49
49
dropwhile (lambda x : len (x ) == len (self ._objects ), self ._weights ))
50
50
if len (s ) != 0 :
51
51
raise ValueError (
52
- "The number of columns on the weights should match the objects' length " )
52
+ "The amount of weight columns should match the amount of objects " )
53
53
for lines in self ._weights :
54
54
for i in lines :
55
55
if i < 0 :
56
56
raise ValueError (
57
- "All values on the weights should be positive" )
57
+ "All weights must be positive" )
58
58
59
59
def distribute (self , fairness = True , output = None ):
60
60
"""
You can’t perform that action at this time.
0 commit comments