Skip to content

Commit

Permalink
Update data_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MaGering committed Jan 29, 2021
1 parent a84d250 commit 31e268b
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/multi_vector_simulator/utils/data_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,21 +390,20 @@ def convert_epa_params_to_mvs(epa_dict):
# TODO remove this when change has been made on EPA side
if asset_group == ENERGY_STORAGE:

if asset_label == STORAGE_CAPACITY:
if (
if (
THERM_LOSSES_REL
not in dict_asset[asset_label][STORAGE_CAPACITY]
):
dict_asset[asset_label][STORAGE_CAPACITY][
THERM_LOSSES_REL
not in dict_asset[asset_label][STORAGE_CAPACITY]
):
dict_asset[asset_label][STORAGE_CAPACITY][
THERM_LOSSES_REL
] = {UNIT: "factor", VALUE: 0}
if (
] = {UNIT: "factor", VALUE: 0}
if (
THERM_LOSSES_ABS
not in dict_asset[asset_label][STORAGE_CAPACITY]
):
dict_asset[asset_label][STORAGE_CAPACITY][
THERM_LOSSES_ABS
not in dict_asset[asset_label][STORAGE_CAPACITY]
):
dict_asset[asset_label][STORAGE_CAPACITY][
THERM_LOSSES_ABS
] = {UNIT: "kWh", VALUE: 0}
] = {UNIT: "kWh", VALUE: 0}

if OPTIMIZE_CAP not in dict_asset[asset_label]:
dict_asset[asset_label][OPTIMIZE_CAP] = {
Expand Down

0 comments on commit 31e268b

Please sign in to comment.