-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update panda3d for python 3.10 (#2080)
* Update panda3d for python 3.10 * Unpin cloudpickle. * Fix figure eight. * Attempt colab fixes. * Update setup to support python 3.10. * Attempt further fixes. * Fix tests. * Update dependencies and add version install test. * Fix checkout action. * Remove dev tags. * Fix wrapper numpy integer. * Run version test only on master. * Update changelog.
- Loading branch information
Showing
13 changed files
with
113 additions
and
213 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: SMARTS CI Python Version Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
venv_dir: .venv | ||
|
||
jobs: | ||
install_python: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Update requirements | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
python${{ matrix.python-version }} -m venv ${{env.venv_dir}} | ||
. ${{env.venv_dir}}/bin/activate | ||
pip install --upgrade pip | ||
pip install wheel==0.38.4 | ||
pip install .[camera_obs,rllib,sumo,test,torch,train] |
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import os | ||
import sys | ||
from pathlib import Path | ||
|
||
import gymnasium as gym | ||
from gymnasium.wrappers.record_video import RecordVideo | ||
|
||
from smarts.core.utils.episodes import Episode, episode_range, episodes | ||
from smarts.env.gymnasium.wrappers.episode_logger import EpisodeLogger | ||
from smarts.zoo import registry | ||
|
||
SMARTS_DIR = Path(os.path.abspath("")) | ||
sys.path.insert(0, SMARTS_DIR) | ||
|
||
from examples.env import figure_eight_env | ||
|
||
env = gym.make("figure_eight-v0", disable_env_checker=True) | ||
env: gym.Env = EpisodeLogger(env) | ||
|
||
import zoo.policies.keep_lane_agent | ||
|
||
agent = registry.make_agent("zoo.policies:keep-lane-agent-v0") | ||
|
||
for episode in episode_range(max_steps=450): | ||
observation, info = env.reset() | ||
reward, terminated, truncated, info = None, False, False, None | ||
while episode.continues(observation, reward, terminated, truncated, info): | ||
action = agent.act(observation) | ||
observation, reward, _, terminated, info = env.step(action) | ||
|
||
env.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
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,6 +1,6 @@ | ||
[benchmark] | ||
[core] | ||
debug = false | ||
debug = False | ||
observation_workers = 0 | ||
reset_retries = 0 | ||
[controllers] | ||
|
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
Oops, something went wrong.