From a6a7594eda9529e19236c9f0c55ffb89dd2f461d Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 14 Jul 2019 11:50:44 +1000 Subject: [PATCH] plan: rename calculate_rates as required_rates --- plan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plan.py b/plan.py index d10d354..aa66ba2 100755 --- a/plan.py +++ b/plan.py @@ -21,7 +21,7 @@ def basic_rate(recipe: Dict) -> Fraction: ) -def calculate_rates( +def required_rates( recipes: satisfactory.Cookbook, remain: List[Dict[str, Fraction]] ) -> Dict[str, Fraction]: @@ -78,7 +78,7 @@ def main(): # Create an initial name:rate request for all of the target items, then # create a plan for their creation. remain = [{n: basic_rate(recipes[n]['recipes'][0]) for n in targets}] - required_items = calculate_rates(recipes, remain) + required_items = required_rates(recipes, remain) # Note if any particular item is (in aggregate) going to exceed the # highest conveyor belt capacity.