Change hostname not in ini file but via config parameters
To run simulations in parallel, the hostnames must be unique. -> see crownet tests.
In the suqc
, the hostname
is treated as a parameter value that is set in the omnetpp.ini
file
See suqc/parameter/sampling.py
def add_simulator_server_id(self, simulator="vadere"):
ids = self.points.index.to_list()
ids = [f'"{self.get_hostname(simulator, id[0], id[1])}"' for id in ids]
self.points.insert(
0, ("Parameter", "omnet", "*.traci.launcher.hostname"), ids, True
)
self._points = self.points.sort_index(axis=1)
@stsc has already implemented a functionality in the roveranalyzer
that allows to specify the host_name via additional arguments that are passed to the run_script.py
.
I am not sure if this is suitable
self.arg_list.add_override(f"--vadere-host={self.mobility_runner.name}:9998")
@stsc : Can you tell me where I can find an example? (Filepath)