File tree 1 file changed +15
-9
lines changed
1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -1248,23 +1248,29 @@ def format_superstructure_dataframe(self) -> None:
1248
1248
# in any of the scenario columns
1249
1249
# replace zeroes with ones
1250
1250
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
+ )
1255
1257
1256
1258
self .scenario_df .loc [
1257
1259
self .scenario_df ["flow type" ] == "production" ,
1258
1260
[s ["name" ] for s in self .scenarios ],
1259
1261
] = self .scenario_df .loc [
1260
1262
self .scenario_df ["flow type" ] == "production" ,
1261
1263
[s ["name" ] for s in self .scenarios ],
1262
- ].replace (0 , 1 , regex = True )
1264
+ ].replace (
1265
+ 0 , 1 , regex = True
1266
+ )
1263
1267
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
+ )
1268
1274
1269
1275
def unfold (
1270
1276
self ,
You can’t perform that action at this time.
0 commit comments