Skip to content

Commit

Permalink
#1 updated food storage api used by #3
Browse files Browse the repository at this point in the history
  • Loading branch information
rodigu committed Dec 4, 2022
1 parent 3255338 commit d9f2eb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion FoodBank.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ def __init__(self, food_insecure_pop: int, initial_storage: float):
self._storage = Food(initial_storage)

def food_storage(self):
return self._storage
"""API for retreaving food storage dataframe
:return: storage dataframe
"""
return self._storage.df.copy()

def run_one_day(self, budget: float, food_donations: float):
"""Runs simulation for the day. Also calls `run_one_day` for each pantry it serves.
Expand Down

0 comments on commit d9f2eb1

Please sign in to comment.