Skip to content

Commit f5d5b4a

Browse files
committed
Black reformating
1 parent e2b211f commit f5d5b4a

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

unfold/unfold.py

+15-9
Original file line numberDiff line numberDiff line change
@@ -1248,23 +1248,29 @@ def format_superstructure_dataframe(self) -> None:
12481248
# in any of the scenario columns
12491249
# replace zeroes with ones
12501250

1251-
print(self.scenario_df.loc[
1252-
self.scenario_df["flow type"] == "production",
1253-
[s["name"] for s in self.scenarios],
1254-
].sum())
1251+
print(
1252+
self.scenario_df.loc[
1253+
self.scenario_df["flow type"] == "production",
1254+
[s["name"] for s in self.scenarios],
1255+
].sum()
1256+
)
12551257

12561258
self.scenario_df.loc[
12571259
self.scenario_df["flow type"] == "production",
12581260
[s["name"] for s in self.scenarios],
12591261
] = self.scenario_df.loc[
12601262
self.scenario_df["flow type"] == "production",
12611263
[s["name"] for s in self.scenarios],
1262-
].replace(0, 1, regex=True)
1264+
].replace(
1265+
0, 1, regex=True
1266+
)
12631267

1264-
print(self.scenario_df.loc[
1265-
self.scenario_df["flow type"] == "production",
1266-
[s["name"] for s in self.scenarios],
1267-
].sum())
1268+
print(
1269+
self.scenario_df.loc[
1270+
self.scenario_df["flow type"] == "production",
1271+
[s["name"] for s in self.scenarios],
1272+
].sum()
1273+
)
12681274

12691275
def unfold(
12701276
self,

0 commit comments

Comments
 (0)