Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions pathmind/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def train(
"""

env_name = str(self.__class__).split("'")[1]
multi_agent = self.number_of_agents() > 1

if not observation_yaml:
write_observation_yaml(self, base_folder)
Expand All @@ -216,10 +215,8 @@ def train(
cmd = f"""curl -i -XPOST \
-H "X-PM-API-TOKEN: {token}" \
-F 'file=@training.zip' \
-F 'isPathmindSimulation=true' \
-F 'env={env_name}' \
-F 'start=true' \
-F 'multiAgent={multi_agent}' \
-F 'obsSelection={obs_yaml}' \
https://api.pathmind.com/py/upload
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_train_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def test_training():
simulation.train()


@pytest.mark.xfail(reason="Multi-agent hasn't been released to prod yet")
def test_multi_training():
pytest.skip("Needs multi-agent training to work on web app")
simulation = MultiMouseAndCheese()
simulation.train()

Expand Down