fixed some small warnings

This commit is contained in:
Saeed Ranjbar 2023-12-28 18:41:08 -05:00
parent 6e1914963d
commit 591c2631eb
2 changed files with 3 additions and 6 deletions

View File

@ -7,7 +7,7 @@ from hub.imports.construction_factory import ConstructionFactory
from hub.imports.usage_factory import UsageFactory from hub.imports.usage_factory import UsageFactory
from hub.imports.weather_factory import WeatherFactory from hub.imports.weather_factory import WeatherFactory
from hub.imports.energy_systems_factory import EnergySystemsFactory from hub.imports.energy_systems_factory import EnergySystemsFactory
from scripts import random_assignation from scripts.random_assignation import call_random, residential_systems_percentage
import hub.helpers.constants as cte import hub.helpers.constants as cte
geojson_file = process_geojson(x=-73.567908, y=45.492783, diff=0.00045) geojson_file = process_geojson(x=-73.567908, y=45.492783, diff=0.00045)
@ -30,9 +30,6 @@ energy_plus_workflow(city)
city_buildings_peak_heating_demands = {} city_buildings_peak_heating_demands = {}
for building in city.buildings: for building in city.buildings:
city_buildings_peak_heating_demands[f'{building.name}'] = building.heating_peak_load[cte.YEAR] city_buildings_peak_heating_demands[f'{building.name}'] = building.heating_peak_load[cte.YEAR]
random_assignation._call_random(city.buildings, random_assignation.residential_systems_percentage) call_random(city.buildings, residential_systems_percentage)
EnergySystemsFactory('montreal_custom', city).enrich() EnergySystemsFactory('montreal_custom', city).enrich()
print('test') print('test')

View File

@ -77,7 +77,7 @@ def _retrieve_buildings(path, year_of_construction_field=None,
return _buildings return _buildings
def _call_random(_buildings: [Building], _systems_percentage): def call_random(_buildings: [Building], _systems_percentage):
_buildings_with_systems = [] _buildings_with_systems = []
_systems_distribution = [] _systems_distribution = []
_selected_buildings = list(range(0, len(_buildings))) _selected_buildings = list(range(0, len(_buildings)))