Drop duplicate atb cost rows.
Duplicates occur when a modified ATB tech and the original tech are both
included in a model e.g. 90% CCS and a modified version for 100% capture.
The df can't be unstacked with duplicate tech/tech_detail/parameter entries.
@@ -184,7 +184,7 @@ def fetch_atb_costs(
# Transform from tidy to wide dataframe, which makes it easier to fill generator
# rows with the correct values.
- atb_costs = df.set_index(
+ atb_costs = df.drop_duplicates().set_index(
[
"technology",
"tech_detail",
