From 2a4b8912ed46f7ef3ece68b9876197145d945af7 Mon Sep 17 00:00:00 2001 From: edbeeching Date: Fri, 2 Feb 2024 15:12:16 +0100 Subject: [PATCH 1/2] updates for 0.7 release --- godot_rl/core/godot_env.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/godot_rl/core/godot_env.py b/godot_rl/core/godot_env.py index 9f0d1c83..c5bc4ac7 100644 --- a/godot_rl/core/godot_env.py +++ b/godot_rl/core/godot_env.py @@ -17,7 +17,7 @@ class GodotEnv: MAJOR_VERSION = "0" # Versioning for the environment - MINOR_VERSION = "4" + MINOR_VERSION = "7" DEFAULT_PORT = 11008 # Default port for communication with Godot Game DEFAULT_TIMEOUT = 60 # Default socket timeout TODO diff --git a/pyproject.toml b/pyproject.toml index 34255d07..8330cf30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] name = "godot_rl" -version = "0.6.2" +version = "0.7.0" authors = [ { name="Edward Beeching", email="edbeeching@gmail.com" }, ] From 75fafe42d5d668a90175d53cd7dd8f23461b6cf4 Mon Sep 17 00:00:00 2001 From: edbeeching Date: Fri, 2 Feb 2024 15:27:08 +0100 Subject: [PATCH 2/2] fix quality --- godot_rl/wrappers/ray_wrapper.py | 6 +++--- tests/benchmark_env.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/godot_rl/wrappers/ray_wrapper.py b/godot_rl/wrappers/ray_wrapper.py index d1fc68a1..f1c875f2 100644 --- a/godot_rl/wrappers/ray_wrapper.py +++ b/godot_rl/wrappers/ray_wrapper.py @@ -181,9 +181,9 @@ def rllib_training(args, extras): checkpoint_at_end=not args.eval, restore=args.restore, local_dir=os.path.abspath(args.experiment_dir) or os.path.abspath("logs/rllib"), - trial_name_creator=lambda trial: f"{args.experiment_name}" - if args.experiment_name - else f"{trial.trainable_name}_{trial.trial_id}", + trial_name_creator=lambda trial: ( + f"{args.experiment_name}" if args.experiment_name else f"{trial.trainable_name}_{trial.trial_id}" + ), ) if args.export: raise NotImplementedError("Exporting is not (re)implemented yet") diff --git a/tests/benchmark_env.py b/tests/benchmark_env.py index d5cc4f6a..b85a44f9 100644 --- a/tests/benchmark_env.py +++ b/tests/benchmark_env.py @@ -4,7 +4,6 @@ we perform 10,000 actions and calculate the interactions per second in a variety of configurations """ - import time from godot_rl.core.godot_env import GodotEnv