diff --git a/setup.py b/setup.py index e73b380..2c3ea9d 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ def run(self): setup( name="vania", - version="0.1.0", + version="0.1.1", description="A module to fairly distribute objects among targets considering weights.", license="MIT", author="Hackathonners", diff --git a/vania/fair_distributor.py b/vania/fair_distributor.py index 5e5563f..c03397b 100644 --- a/vania/fair_distributor.py +++ b/vania/fair_distributor.py @@ -42,19 +42,19 @@ def validate(self): def _validate(self): if len(self._weights) != len(self._targets): raise ValueError( - "The number of lines on the weights should match the targets' length") + "The amount of weight lines should match the amount of targets") # All values should be positive s = list( dropwhile(lambda x: len(x) == len(self._objects), self._weights)) if len(s) != 0: raise ValueError( - "The number of columns on the weights should match the objects' length") + "The amount of weight columns should match the amount of objects") for lines in self._weights: for i in lines: if i < 0: raise ValueError( - "All values on the weights should be positive") + "All weights must be positive") def distribute(self, fairness=True, output=None): """