Skip to content

Commit

Permalink
fixed bug in dw stock
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Eggimann committed May 20, 2019
1 parent 030d1c6 commit 396aebf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions energy_demand/dwelling_stock/dw_stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(
self.curr_yr = curr_yr
self.enduses = enduses
self.longitude = coordinates['longitude']
self.latitude = coordinates['longitude']
self.latitude = coordinates['latitude']
self.dwtype = dwtype
self.age = age
self.population = population
Expand Down Expand Up @@ -517,7 +517,7 @@ def rs_dw_stock(

# Get floor area per person for every simulation year
data_floorarea_pp = get_floorare_pp(
floorarea_by,
tot_floorarea_cy,
scenario_data['population'][base_yr][region],
base_yr,
sim_yrs,
Expand Down
5 changes: 0 additions & 5 deletions energy_demand/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,13 @@ def __init__(
logging.debug("... generating dwelling stocks")
lookups = lookup_tables.basic_lookups()

#if criterias['virtual_building_stock_criteria']:
rs_dw_stock, ss_dw_stock = create_virtual_dwelling_stocks(
regions, assumptions.curr_yr, data, criterias)

data['dw_stocks'] = {
lookups['submodels_names'][0]: rs_dw_stock,
lookups['submodels_names'][1]: ss_dw_stock,
lookups['submodels_names'][2]: None}
#else:
# Create dwelling stock from imported data from newcastle
# data = create_dwelling_stock(
# regions, assumptions.curr_yr, data)

# Initialise result container to aggregate results
aggr_results = initialise_result_container(
Expand Down
1 change: 0 additions & 1 deletion energy_demand/wrapper_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def load_data_before_simulation(
data['scenario_data']['floor_area']['rs_floorarea'] = data['scenario_data']['rs_floorarea']
data['scenario_data']['floor_area']['ss_floorarea'] = data['scenario_data']['ss_floorarea']
data['scenario_data']['service_building_count'][data['assumptions'].base_yr] = {}
#pass

return data

Expand Down

0 comments on commit 396aebf

Please sign in to comment.