From cc52477549c8dc1a0c8b76d7599a88423e840f58 Mon Sep 17 00:00:00 2001 From: Liam Swayne Date: Sun, 26 Nov 2023 18:03:30 -0500 Subject: [PATCH] test case bugfix --- linear_program.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linear_program.py b/linear_program.py index 774a862..dc709e6 100644 --- a/linear_program.py +++ b/linear_program.py @@ -72,8 +72,8 @@ def calculate(floors=1, xLength=1, yLength=1): logs.append("Parameters given: " + str(floors) + " floor, " + str(xLength) + " tile x length, " + str(yLength) + " tile y length.") logs.append("\nCost (measured in USD): $" + str(round(cost.value, 2))) logs.append("\nColumns (measured in quantity):") - logs.append("Aluminum columns needed: "+str(sum(sum(aluminumColumns, [])))) - logs.append("Steel columns needed: "+str(sum(sum(steelColumns, [])))) + logs.append("Aluminum columns needed: "+str(sum(sum(aluminumColumns.value, [])))) + logs.append("Steel columns needed: "+str(sum(sum(steelColumns.value, [])))) logs.append("\nCarbon offsets (measured in acres):") logs.append("Slash pine acres: " + str(slashPineAcres.value))