pymgipsim.Utilities.simulation_folder¶
Functions
Create a simulation folder and subfolders for figures. |
|
Create a simulation name based on the start timestamp. |
|
Create a simulation results folder with metadata. |
|
Get the most recent folder in a given directory based on modification time. |
|
- create_simulation_folder(results_folder_directory: str, simulation_name: str) str [source]¶
Create a simulation folder and subfolders for figures.
Parameters: - results_folder_directory: str
Path to the results folder.
- simulation_name: str
Name of the simulation.
Returns: - str
Path to the created simulation folder.
- create_simulation_name(start_time_stamp: str) str [source]¶
Create a simulation name based on the start timestamp.
Parameters: - start_time_stamp: str
Start timestamp of the simulation.
Returns: - str
Generated simulation name.
- create_simulation_results_folder(results_directory: str) tuple[str, str, str, str] [source]¶
Create a simulation results folder with metadata.
Parameters: - results_directory: str
Path to the results directory.
Returns: - tuple
Tuple containing start timestamp, Python system information, simulation name, and folder path.