Skip to content

Commit 14dd4b7

Browse files
author
Codex Labs
committed
2 parents 5465f8c + 838b126 commit 14dd4b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/swarm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,6 +1616,7 @@ def run_simulation(self,
16161616
exit(1)
16171617

16181618
user_settings = json.loads(settings)
1619+
# TODO Set up a list of scenarios that require a trajectory
16191620
if user_settings["Scenario"]["Name"] == "DataCollection":
16201621
trajectory_valid = self.validate_multi_level_trajectory_file(
16211622
json.loads(trajectory))
@@ -1628,13 +1629,16 @@ def run_simulation(self,
16281629

16291630
user_code = self.client.load_user_code(json.loads(settings))
16301631

1632+
# Always add the IP address so the server knows if we are
1633+
# local or not
16311634
message = {
16321635
"Command": "Run Simulation",
16331636
"Settings": settings,
16341637
"Trajectory": trajectory,
16351638
"UserCode": user_code,
16361639
"Sim_name": sim_name,
1637-
"Map_name": map_name
1640+
"Map_name": map_name,
1641+
"IPAddress": ip_address
16381642
}
16391643
self.client.connect()
16401644
# Give the client time to establish the connection

0 commit comments

Comments
 (0)