Skip to content

Commit 74e765d

Browse files
committed
Small fix + New version
1 parent de71738 commit 74e765d

3,247 files changed

Lines changed: 4 additions & 4 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pabutools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__author__ = "Simon Rey, Grzegorz Pierczyński, Markus Utke and Piotr Skowron"
22
__email__ = "simon.j.rey@proton.me"
3-
__version__ = "1.2.2"
3+
__version__ = "1.2.3"
44

55

66
import logging

pabutools/election/satisfaction/functionalsatisfaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def cost_log_sat_func(
266266
The log cost satisfaction.
267267
268268
"""
269-
return frac(np.log(1 + total_cost(p for p in projects if p in ballot)))
269+
return frac(np.log(float(1 + total_cost(p for p in projects if p in ballot))))
270270

271271

272272
class Cost_Log_Sat(FunctionalSatisfaction):

pabutools/rules/mes/mes_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def affordability_poor_rich(voters: list[MESVoter], project: MESProject) -> Nume
176176
177177
"""
178178
rich = set(project.supporter_indices)
179-
poor = {}
179+
poor = set()
180180
while len(rich) > 0:
181181
poor_budget = sum(voters[i].total_budget() for i in poor)
182182
numerator = frac(project.cost - poor_budget)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "pabutools"
7-
version = "1.2.2"
7+
version = "1.2.3"
88
description = "Implementation of all the tools necessary to explore and analyse participatory budgeting elections"
99
authors = [
1010
{ name = "Simon Rey", email = "simon.j.rey@proton.me" },
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/PaBuLib/All/poland_czestochowa_2020_czestochowka-parkitka.pb renamed to tests/pabulib/All/poland_czestochowa_2020_czestochowka-parkitka.pb

File renamed without changes.
File renamed without changes.

tests/PaBuLib/All/poland_czestochowa_2020_gnaszyn-kawodrza.pb renamed to tests/pabulib/All/poland_czestochowa_2020_gnaszyn-kawodrza.pb

File renamed without changes.

0 commit comments

Comments
 (0)