tum-ens / urbs

A linear optimisation model for distributed energy systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change conversion parameters in scenarios.py

philippklughardt opened this issue · comments

Dear urbs community,

I would like to change some input/output ratios in the Process-Commodity tab within a scenario.
Unfortunately, after defining pro_co = data['process-commodity'] in scenarios.py, I get the following error message when running the model: KeyError: 'process-commodity'

Has someone encountered this problem and could help me out? Thanks a lot in advance!

The key is called process_commodity:

urbs/urbs/input.py

Lines 160 to 173 in 6368500

data = {
'global_prop': global_prop,
'site': site,
'commodity': commodity,
'process': process,
'process_commodity': process_commodity,
'demand': demand,
'supim': supim,
'transmission': transmission,
'storage': storage,
'dsm': dsm,
'buy_sell_price': buy_sell_price.dropna(axis=1, how='all'),
'eff_factor': eff_factor.dropna(axis=1, how='all')
}