Skip to content

Commit

Permalink
food pantry number rework for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
rodigu committed Nov 30, 2022
1 parent 26df6d9 commit 9cc7795
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions FoodBank.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import FoodPantry

class FoodBank:
def __init__(self, num_pantries: int, per_capita_wealth: float):
def __init__(self, food_insecure_pop: int):
ppl_per_pantry = 260
# we assume half of the food insecure people actually use the bank
num_pantries = int(.5 * food_insecure_pop / ppl_per_pantry)
self.pantries = [FoodPantry(self) for i in range(num_pantries)]
self.wealth = per_capita_wealth


# set proportion of pantries from food_insecure

0 comments on commit 9cc7795

Please sign in to comment.