Simulation Interactions¶
- 
delphin_6_automation.database_interactions.simulation_interactions.clean_simulation_folder(path: str) → bool[source]¶ Cleans the simulation folder for content
Parameters: path – Path to the simulation folder Returns: True on success 
- 
delphin_6_automation.database_interactions.simulation_interactions.download_simulation_result(sim_id: str, download_path: str, raw_or_processed='raw') → None[source]¶ Downloads Delphin simulation results from the database.
Parameters: - sim_id – Delphin project ID
 - download_path – Path to download to
 - raw_or_processed – Whether to download the raw results or the processed ones
 
Returns: None
- 
delphin_6_automation.database_interactions.simulation_interactions.find_next_sim_in_queue() → Optional[str][source]¶ Finds the next entry in the simulation queue, which is not yet simulated and has the highest queue priority.
Returns: If a entry is found the id will be returned otherwise None. 
- 
delphin_6_automation.database_interactions.simulation_interactions.set_simulated(id_: str) → str[source]¶ Flags an entry for finishing the simulation.
Parameters: id – ID of the entry Returns: ID of the entry 
- 
delphin_6_automation.database_interactions.simulation_interactions.set_simulating(id_: str, set_to: bool) → str[source]¶ Set the simulating flag of an entry.
Parameters: - id – ID of the entry
 - set_to – What to set simulating to. Should be either True or False.
 
Returns: ID of the entry