Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Oct 17, 2024
1 parent 26b0507 commit 96cd73e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions premise/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,11 +893,7 @@ def generate_superstructure_db(
print(f"Dropped {before - after} duplicate(s).")

for scenario in scenario_list:
df.loc[
(df["flow type"] == "production")
& (df[scenario] == 0),
scenario
] = 1
df.loc[(df["flow type"] == "production") & (df[scenario] == 0), scenario] = 1

# if df is longer than the row limit of Excel,
# the export to Excel is not an option
Expand Down

0 comments on commit 96cd73e

Please sign in to comment.