Skip to content

Commit

Permalink
Few fix and new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Rey committed Oct 11, 2023
1 parent 864e4c4 commit 7c5d1d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pabutools/rules/greedywelfare.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def greedy_utilitarian_welfare(
profile: AbstractProfile,
sat_class: type[SatisfactionMeasure] = None,
sat_profile: GroupSatisfactionMeasure = None,
is_sat_additive: bool = False,
is_sat_additive: bool = None,
tie_breaking: TieBreakingRule = None,
resoluteness: bool = True,
initial_budget_allocation: Iterable[Project] = None,
Expand Down Expand Up @@ -242,7 +242,8 @@ def greedy_utilitarian_welfare(
else:
if sat_profile is None:
sat_profile = profile.as_sat_profile(sat_class)
is_sat_additive = issubclass(sat_class, AdditiveSatisfaction)
if is_sat_additive is None:
is_sat_additive = issubclass(sat_class, AdditiveSatisfaction)

if is_sat_additive:
return greedy_utilitarian_scheme_additive(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "pabutools"
version = "1.0.7"
version = "1.0.8"
description = "Implementation of all the tools necessary to explore and analyse participatory budgeting elections"
authors = [
{ name = "Simon Rey", email = "[email protected]" },
Expand Down

0 comments on commit 7c5d1d5

Please sign in to comment.