Skip to content

Commit

Permalink
fix: adding python export
Browse files Browse the repository at this point in the history
  • Loading branch information
abanuelo committed Jun 25, 2024
1 parent bd299e4 commit a159d8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libfreetype6-dev libportmidi-dev libjpeg-dev libpng-dev
export PYGAME_DETECT_AVX2=1
- name: Install Scenic and dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libfreetype6-dev libportmidi-dev libjpeg-dev libpng-dev
export PYGAME_DETECT_AVX2=1
- name: Install Scenic and dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions tests/simulators/newtonian/test_newtonian.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_basic(loadLocalScenario):
def test_render(loadLocalScenario):
scenario = loadLocalScenario("basic.scenic")
scene, _ = scenario.generate(maxIterations=1)
simulator = NewtonianSimulator()
simulator = NewtonianSimulator(render=True)
simulator.simulate(scene, maxSteps=3)


Expand All @@ -44,7 +44,7 @@ def test_gif_creation(loadLocalScenario):
scene, _ = scenario.generate(maxIterations=1000)
path = Path("assets") / "maps" / "CARLA" / "Town01.xodr"
network = Network.fromFile(path)
simulator = NewtonianSimulator(network=network, export_gif=True)
simulator = NewtonianSimulator(render=True, network=network, export_gif=True)
simulation = simulator.simulate(scene, maxSteps=100)
gif_path = Path("") / "simulation.gif"
assert os.path.exists(gif_path)
Expand Down

0 comments on commit a159d8d

Please sign in to comment.