compare_runs module
Define functions to compare several runs based on their
evaluations.csv.
- concatenate_evaluation_files(simulation_id, evaluation_folder, evaluation_namecol)[source]
Load the file and rename column header.
- Parameters:
- Return type:
- Returns:
Holds all the values of
evaluation_namecolinevaluation_path; new name of the column issimulation_id.
- _compare_one_quantity_all_simulations(simulation_ids_and_paths, evaluation_namecol, y_label)[source]
Load and plot all the given files.
- compare_simulations(simulation_ids_and_paths, studies)[source]
Perform all defined studies.
- Parameters:
- Return type:
Examples
>>> simulation_ids_and_paths = {"leapfrog": "run_1/evaluations.csv", "downhill": "run2/evaluations.csv"} >>> studies = {"Lost power [W]", "lost power shall be null", "Relative emittance increase", "emittance increase"} >>> compare_simulations(simulation_ids_and_paths, studies)