Example #1
0
 def test_generate_runs_scenarios_none_with_overrides(self):
     runs = generate_runs(
         _MODEL_URBAN,
         scenarios=None,
     )
     assert len(runs) == 4
     assert runs[0].endswith("--scenario milp --save_netcdf out_1_milp.nc")
Example #2
0
 def test_generate_runs_scenarios(self):
     runs = generate_runs(
         _MODEL_NATIONAL,
         scenarios="time_resampling;profiling;time_clustering")
     assert len(runs) == 3
     assert runs[0].endswith(
         "--scenario time_resampling --save_netcdf out_1_time_resampling.nc"
     )
Example #3
0
 def test_generate_runs_scenarios_none_with_scenarios(self):
     runs = generate_runs(_MODEL_NATIONAL, scenarios=None)
     assert len(runs) == 2
     assert runs[0].endswith(
         "--scenario cold_fusion_with_production_share --save_netcdf out_1_cold_fusion_with_production_share.nc"
     )