subprocess.call( os.path.join(temp_exp_dir, 'bat', '0_runCombineAndTrimTrajectories.bat')) log.info(f"Folder cleanup") subprocess.call( os.path.join(temp_exp_dir, 'bat', '0_cleanupSimulations.bat')) log.info(f"Outputs are in {sim_output_path}") log.info("Sample plot") ## FIXME: check dates when running with multiple startdates per single region! ## Also applies to load_sim_data function in processing_helpers try: runSamplePlot(exp_name, sim_output_path=sim_output_path, plot_path=plot_path, channel_list_name="master") log.info("Sample plot generated") except: log.info("Sample plot not generated") if args.post_process == 'dataComparison': log.info("Compare to data") p0 = os.path.join(sim_output_path, 'bat', '2_runDataComparison.bat') subprocess.call([p0]) if args.post_process == 'processForCivis': log.info("Compare to data") p0 = os.path.join(sim_output_path, 'bat',
#combineTrajectories(Nscenarios=nscen, trajectories_dir=trajectories_dir, # temp_exp_dir=temp_exp_dir, deleteFiles=False) subprocess.call( os.path.join(temp_exp_dir, 'bat', '0_runCombineAndTrimTrajectories.bat')) cleanup(temp_dir=temp_dir, temp_exp_dir=temp_exp_dir, sim_output_path=sim_output_path, plot_path=plot_path, delete_temp_dir=True) log.info(f"Outputs are in {sim_output_path}") log.info("Sample plot") try: runSamplePlot(sim_output_path=sim_output_path, plot_path=plot_path, start_dates=start_dates, channel_list_name="master") log.info("Sample plot generated") except: log.info("Sample plot not generated") if args.post_process == 'dataComparison': log.info("Compare to data") p0 = os.path.join(sim_output_path, 'bat', '2_runDataComparison.bat') subprocess.call([p0]) if args.post_process == 'processForCivis': log.info("Compare to data") p0 = os.path.join(sim_output_path, 'bat',