Skip to content

Commit

Permalink
Version to run model with smif
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Eggimann committed Feb 9, 2018
1 parent 5e15ad8 commit 8dd95a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions energy_demand/plotting/plotting_results.py
Expand Up @@ -1558,7 +1558,7 @@ def plot_lad_comparison(
markerfacecolor='grey',
markeredgewidth=0.2,
color='black',
label='actual')
label='BASE YEAR')

plt.plot(
x_values,
Expand All @@ -1571,7 +1571,7 @@ def plot_lad_comparison(
markeredgewidth=0.5,
markeredgecolor='blue',
color='black',
label='model')
label='CURRENT YEAr')

# Limit
plt.ylim(ymin=0)
Expand Down
9 changes: 7 additions & 2 deletions run.py
Expand Up @@ -52,6 +52,10 @@ def before_model_run(self, data_handle):
"""
data = defaultdict(dict)

# -----------
# INFORMATION: IF you want only to run smif, use the following configuration: fast_smif_run == True
# -----------

# Criteria
data['criterias']['mode_constrained'] = True # True: Technologies are defined in ED model and fuel is provided, False: Heat is delievered not per technologies
data['criterias']['virtual_building_stock_criteria'] = True # True: Run virtual building stock model
Expand All @@ -69,7 +73,7 @@ def before_model_run(self, data_handle):
data['sim_param']['curr_yr'] = data['sim_param']['base_yr']
self.user_data['base_yr'] = data['sim_param']['base_yr']

'''fast_smif_run = False #YEAY
fast_smif_run = True

if fast_smif_run == True:
data['criterias']['write_to_txt'] = False
Expand All @@ -82,7 +86,8 @@ def before_model_run(self, data_handle):
data['criterias']['beyond_supply_outputs'] = True
data['criterias']['validation_criteria'] = True
data['criterias']['plot_tech_lp'] = True
data['criterias']['plot_crit'] = True'''
data['criterias']['plot_crit'] = True

# -----------------------------
# Paths
# -----------------------------
Expand Down

0 comments on commit 8dd95a7

Please sign in to comment.