-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45fbdbf
commit 8eb30d6
Showing
5 changed files
with
41 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,13 @@ | ||
from vivarium.simulator import behaviors | ||
from vivarium.simulator.states import init_simulator_state | ||
from vivarium.simulator.states import init_agent_state | ||
from vivarium.simulator.states import init_object_state | ||
from vivarium.simulator.states import init_entities_state | ||
from vivarium.simulator.states import init_state | ||
from vivarium.simulator.simulator import Simulator | ||
from vivarium.simulator.physics_engine import dynamics_rigid | ||
|
||
NUM_STEPS = 50 | ||
|
||
def test_simulator_run(): | ||
simulator_state = init_simulator_state() | ||
|
||
agents_state = init_agent_state(simulator_state=simulator_state) | ||
|
||
objects_state = init_object_state(simulator_state=simulator_state) | ||
|
||
entities_state = init_entities_state(simulator_state=simulator_state) | ||
|
||
state = init_state( | ||
simulator_state=simulator_state, | ||
agents_state=agents_state, | ||
objects_state=objects_state, | ||
entities_state=entities_state | ||
) | ||
|
||
simulator = Simulator(state, behaviors.behavior_bank, dynamics_rigid) | ||
|
||
state = init_state() | ||
simulator = Simulator(state, behaviors.behavior_bank, dynamics_rigid) | ||
|
||
simulator.run(threaded=False, num_steps=NUM_STEPS) | ||
|
||
assert simulator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters