From 609f49ebc1720de09377a3ddffcc9d0a0ed4e566 Mon Sep 17 00:00:00 2001 From: g_gutierrez Date: Thu, 10 Aug 2023 12:37:55 -0400 Subject: [PATCH] remove unwanted prints --- costs/cost.py | 12 ------------ tests/unit_tests.py | 2 -- 2 files changed, 14 deletions(-) diff --git a/costs/cost.py b/costs/cost.py index a504fa5..7204b50 100644 --- a/costs/cost.py +++ b/costs/cost.py @@ -74,22 +74,11 @@ class Cost: :return: DataFrame """ results = pd.DataFrame() - start = datetime.datetime.now() global_capital_costs, global_capital_incomes = CapitalCosts(self._building, self._configuration).calculate() - print(f'CapitalCosts: {datetime.datetime.now()-start}') - start = datetime.datetime.now() global_end_of_life_costs = EndOfLifeCosts(self._building, self._configuration).calculate() - print(f'EndOfLifeCosts: {datetime.datetime.now() - start}') - start = datetime.datetime.now() global_operational_costs = TotalOperationalCosts(self._building, self._configuration).calculate() - print(f'TotalOperationalCosts: {datetime.datetime.now() - start}') - start = datetime.datetime.now() global_maintenance_costs = TotalMaintenanceCosts(self._building, self._configuration).calculate() - print(f'TotalMaintenanceCosts: {datetime.datetime.now() - start}') - start = datetime.datetime.now() global_operational_incomes = TotalOperationalIncomes(self._building, self._configuration).calculate() - print(f'OperationalIncomes: {datetime.datetime.now() - start}') - start = datetime.datetime.now() df_capital_costs_skin = ( global_capital_costs['B2010_opaque_walls'] + global_capital_costs['B2020_transparent'] + @@ -163,5 +152,4 @@ class Cost: 'global_maintenance_costs', 'global_operational_incomes' ] - print(f'Dataframes: {datetime.datetime.now()-start}') return results diff --git a/tests/unit_tests.py b/tests/unit_tests.py index 824d4ee..f55bb5b 100644 --- a/tests/unit_tests.py +++ b/tests/unit_tests.py @@ -63,9 +63,7 @@ class UnitTests(unittest.TestCase): def test_current_status(self): for building in self.init.city.buildings: - start = datetime.datetime.now() result = Cost(building).life_cycle - print(f'Cost calculation for building {building.name}: {datetime.datetime.now()-start}') self.assertIsNotNone(result) self.assertEqual(0, result.values[0])