Skip to content

Commit d9417a7

Browse files
committed
Fixes issue with combining scenario files
1 parent 925dff0 commit d9417a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

activity_browser/bwutils/superstructure/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def merge_flows_to_self(df: pd.DataFrame) -> pd.DataFrame:
319319
prod_amt = list(bd.get_activity(idx[0]).production())[0].get("amount", 1)
320320
# make a new df to edit the production, add the correct values/indices where needed
321321
# and concat to the main df
322-
self_referential_production_flows.loc[idx, "flow type"] = "production"
322+
self_referential_production_flows.loc[idx, ["flow type"]] = "production"
323323
self_referential_production_flows.loc[idx, scenario_cols] = prod_amt
324324
if len(self_referential_production_flows) > 0:
325325
tech_idxs = [

0 commit comments

Comments
 (0)