Skip to content

Commit 3e1c6bb

Browse files
authored
fill cost values with defaults after merging custom costs (#1911)
1 parent 437eb82 commit 3e1c6bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/process_cost_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ def prepare_costs(
137137

138138
# min_count=1 is important to generate NaNs which are then filled by fillna
139139
costs = costs.value.unstack(level=1).groupby("technology").sum(min_count=1)
140-
costs = costs.fillna(config["fill_values"])
141140

142141
# Process overwrites for various attributes
143142
costs = overwrite_costs(costs, custom_raw)
143+
costs = costs.fillna(config["fill_values"])
144144
for attr in (
145145
"investment",
146146
"lifetime",

0 commit comments

Comments
 (0)