fixed some small warnings
This commit is contained in:
parent
6e1914963d
commit
591c2631eb
7
main.py
7
main.py
|
@ -7,7 +7,7 @@ from hub.imports.construction_factory import ConstructionFactory
|
|||
from hub.imports.usage_factory import UsageFactory
|
||||
from hub.imports.weather_factory import WeatherFactory
|
||||
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
|
||||
|
||||
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 = {}
|
||||
for building in city.buildings:
|
||||
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()
|
||||
print('test')
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ def _retrieve_buildings(path, year_of_construction_field=None,
|
|||
return _buildings
|
||||
|
||||
|
||||
def _call_random(_buildings: [Building], _systems_percentage):
|
||||
def call_random(_buildings: [Building], _systems_percentage):
|
||||
_buildings_with_systems = []
|
||||
_systems_distribution = []
|
||||
_selected_buildings = list(range(0, len(_buildings)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user