2022-09-22 15:57:07 +00:00
|
|
|
# Python Imports
|
|
|
|
import typer
|
|
|
|
|
|
|
|
# Project Imports
|
2022-09-29 17:13:16 +00:00
|
|
|
from Utilities.Files.Json.simulation_config_parser import SimulationConfigParser
|
|
|
|
from runner import run_simulation
|
2022-09-22 15:57:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
def main(
|
|
|
|
# todo put in output format possible names (-f --output-format)
|
2022-09-29 17:13:16 +00:00
|
|
|
output_format: str = typer.Option(..., "--output-format", "-f"),
|
2022-09-22 15:57:07 +00:00
|
|
|
input_settings: str = typer.Option(..., "--input-settings", "-i"),
|
|
|
|
output_file: str = typer.Option(..., "--output-file", "-o")
|
|
|
|
):
|
|
|
|
# Check config file
|
2022-09-29 17:13:16 +00:00
|
|
|
parser = SimulationConfigParser(input_settings)
|
|
|
|
parser.read_content()
|
2022-09-22 15:57:07 +00:00
|
|
|
# Calls simulation with configuration
|
2022-09-29 17:13:16 +00:00
|
|
|
run_simulation(output_format, input_settings, output_file)
|
2022-09-22 15:57:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
typer.run(main)
|