nomos-specs/mixnet/v2/sim/main.py

18 lines
523 B
Python

import argparse
from config import Config
from analysis import Analysis
from simulation import Simulation
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Run simulation", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--config", type=str, required=True, help="Configuration file path")
args = parser.parse_args()
config = Config.load(args.config)
sim = Simulation(config)
sim.run()
Analysis(sim).run()
print("Simulation complete!")