-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
11 changed files
with
33 additions
and
34 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
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,25 +1,25 @@ | ||
import numpy as np | ||
|
||
from flygym import Fly, SingleFlySimulation, disable_rendering | ||
from flygym import Fly, SingleFlySimulation, is_rendering_skipped | ||
from flygym.arena import GappedTerrain, BlocksTerrain, MixedTerrain | ||
|
||
|
||
np.random.seed(0) | ||
|
||
|
||
def test_gapped_terrain(): | ||
cameras = [] if disable_rendering else None # None = default camera | ||
cameras = [] if is_rendering_skipped else None # None = default camera | ||
sim = SingleFlySimulation(fly=Fly(), arena=GappedTerrain(), cameras=cameras) | ||
sim.close() | ||
|
||
|
||
def test_blocks_terrain(): | ||
cameras = [] if disable_rendering else None # None = default camera | ||
cameras = [] if is_rendering_skipped else None # None = default camera | ||
sim = SingleFlySimulation(fly=Fly(), arena=BlocksTerrain(), cameras=cameras) | ||
sim.close() | ||
|
||
|
||
def test_mixed_terrain(): | ||
cameras = [] if disable_rendering else None # None = default camera | ||
cameras = [] if is_rendering_skipped else None # None = default camera | ||
sim = SingleFlySimulation(fly=Fly(), arena=MixedTerrain(), cameras=cameras) | ||
sim.close() |
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