remove unwanted prints
This commit is contained in:
parent
62ae152ba7
commit
609f49ebc1
|
@ -74,22 +74,11 @@ class Cost:
|
||||||
:return: DataFrame
|
:return: DataFrame
|
||||||
"""
|
"""
|
||||||
results = pd.DataFrame()
|
results = pd.DataFrame()
|
||||||
start = datetime.datetime.now()
|
|
||||||
global_capital_costs, global_capital_incomes = CapitalCosts(self._building, self._configuration).calculate()
|
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()
|
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()
|
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()
|
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()
|
global_operational_incomes = TotalOperationalIncomes(self._building, self._configuration).calculate()
|
||||||
print(f'OperationalIncomes: {datetime.datetime.now() - start}')
|
|
||||||
start = datetime.datetime.now()
|
|
||||||
df_capital_costs_skin = (
|
df_capital_costs_skin = (
|
||||||
global_capital_costs['B2010_opaque_walls'] +
|
global_capital_costs['B2010_opaque_walls'] +
|
||||||
global_capital_costs['B2020_transparent'] +
|
global_capital_costs['B2020_transparent'] +
|
||||||
|
@ -163,5 +152,4 @@ class Cost:
|
||||||
'global_maintenance_costs',
|
'global_maintenance_costs',
|
||||||
'global_operational_incomes'
|
'global_operational_incomes'
|
||||||
]
|
]
|
||||||
print(f'Dataframes: {datetime.datetime.now()-start}')
|
|
||||||
return results
|
return results
|
||||||
|
|
|
@ -63,9 +63,7 @@ class UnitTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_current_status(self):
|
def test_current_status(self):
|
||||||
for building in self.init.city.buildings:
|
for building in self.init.city.buildings:
|
||||||
start = datetime.datetime.now()
|
|
||||||
result = Cost(building).life_cycle
|
result = Cost(building).life_cycle
|
||||||
print(f'Cost calculation for building {building.name}: {datetime.datetime.now()-start}')
|
|
||||||
self.assertIsNotNone(result)
|
self.assertIsNotNone(result)
|
||||||
self.assertEqual(0, result.values[0])
|
self.assertEqual(0, result.values[0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user