Skip to content

Commit

Permalink
Release v0.0.9 (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
sotetsuk authored Aug 21, 2022
1 parent e59ab27 commit 8da04d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:
# To use C++17 features
# https://cibuildwheel.readthedocs.io/en/stable/cpp_standards/#manylinux1-and-c14
MACOSX_DEPLOYMENT_TARGET: "10.15" # <filesystem> requires 10.15
CIBW_BUILD: cp39-* # cp37-* cp38-* cp39-* importlib.resources requires >= 3.7
CIBW_SKIP: pp* cp27-win* cp35-* cp36-* cp37-* cp38-* *win*
CIBW_BUILD: cp39-* cp37-* cp38-* # cp37-* cp38-* cp39-* importlib.resources requires >= 3.7
CIBW_SKIP: pp* cp27-win* cp35-* cp36-* *win*
# https://cibuildwheel.readthedocs.io/en/stable/options/#archs
# universal2 arch raises this error:
# CMake Error at mjx/external/grpc-src/third_party/boringssl-with-bazel/CMakeLists.txt:52 (message): Universal binaries not supported.
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@

```py
from mjx import MjxEnv
from mjx.agent import RandomAgent
from mjx.agents import RandomAgent

agent = RandomAgent()
env = MjxEnv()
player_id, observation = env.reset()
obs_dict = env.reset()
while not env.done():
action = agent.act(observation)
player_id, observation = env.step(action)
rewards = env.rewards()
actions = {player_id: agent.act(obs)
for player_id, obs in obs_dict.items()}
obs_dict = env.step(actions)
returns = env.rewards()
```

## Visualization

Available at https://mjx-visualizer.an.r.appspot.com/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def build_extension(self, ext):
# logic and declaration, and simpler if you include description/version in a file.
setup(
name="mjx",
version="0.0.8",
version="0.0.9",
author="Mjx Project Team",
author_email="[email protected]",
description="",
Expand Down

0 comments on commit 8da04d8

Please sign in to comment.