@@ -39,12 +39,6 @@ def cli(ssp):
39
39
40
40
41
41
@cli .command ("build" )
42
- @click .option (
43
- "--datafile" ,
44
- default = "Global_steel_cement_MESSAGE.xlsx" ,
45
- metavar = "INPUT" ,
46
- help = "File name for external data input" ,
47
- )
48
42
@click .option (
49
43
"--iea_data_path" ,
50
44
default = "P:ene.model\\ IEA_database\\ Florian\\ " ,
@@ -63,7 +57,7 @@ def cli(ssp):
63
57
@common_params ("nodes" )
64
58
@click .pass_obj
65
59
def build_scen (
66
- context , datafile , iea_data_path , tag , mode , scenario_name , old_calib , update_costs
60
+ context , iea_data_path , tag , mode , scenario_name , old_calib , update_costs
67
61
):
68
62
"""Build a scenario.
69
63
@@ -99,9 +93,6 @@ def build_scen(
99
93
if type (output_scenario_name ).__name__ == "NoneType" :
100
94
output_scenario_name = context .scenario_info ["scenario" ]
101
95
102
- # context.metadata_path = context.metadata_path / "data"
103
- context .datafile = datafile
104
-
105
96
if context .scenario_info ["model" ] != "CD_Links_SSP2" :
106
97
log .warning ("WARNING: this code is not tested with this base scenario!" )
107
98
@@ -318,7 +309,7 @@ def run_reporting(context, remove_ts, profile):
318
309
pr = cProfile .Profile ()
319
310
pr .enable ()
320
311
log .info ("Reporting material-specific variables" )
321
- report (context , scenario )
312
+ report (scenario )
322
313
log .info ("Reporting standard variables" )
323
314
reporting (
324
315
mp ,
@@ -343,7 +334,7 @@ def exit():
343
334
else :
344
335
# Remove existing timeseries and add material timeseries
345
336
log .info ("Reporting material-specific variables" )
346
- report (context , scenario )
337
+ report (scenario )
347
338
log .info ("Reporting standard variables" )
348
339
reporting (
349
340
mp ,
0 commit comments