diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 5c1db49f..5ad0c837 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -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" # 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. diff --git a/README.md b/README.md index 2c29e799..1b786278 100644 --- a/README.md +++ b/README.md @@ -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/ diff --git a/setup.py b/setup.py index f4ad5ed3..3c5e7a44 100644 --- a/setup.py +++ b/setup.py @@ -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="koyamada-s@sys.i.kyoto-u.ac.jp", description="",