From 0b4abb4c30c3e758228050f7d1c9c16c32755a7f Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 25 Aug 2020 21:51:29 +0200 Subject: [PATCH] revert unit adjustment for EUR/MW only --- scripts/add_electricity.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/add_electricity.py b/scripts/add_electricity.py index d0385a97..60c1060c 100755 --- a/scripts/add_electricity.py +++ b/scripts/add_electricity.py @@ -144,9 +144,7 @@ def load_costs(Nyears=1., tech_costs=None, config=None, elec_config=None): costs = pd.read_csv(tech_costs, index_col=[0,1]).sort_index() # correct units to MW - to_mw_i = costs.query('unit == "EUR/kW"').index - costs.value.update(costs.value[to_mw_i] * 1e3) - costs.unit.update(pd.Series("EUR/MW", to_mw_i)) + costs.loc[costs.unit.str.contains("/kW"),"value"] *= 1e3 fill_values = {"CO2 intensity" : 0, "FOM" : 0,