From 9450234c4971b1592c84d7ba75681d49306aacbc Mon Sep 17 00:00:00 2001 From: rickstaa Date: Thu, 3 Dec 2020 19:34:54 +0100 Subject: [PATCH] :alien: Updates Oscillator environment version --- .bumpversion.cfg | 3 ++- simzoo/__init__.py | 5 +++-- simzoo/envs/oscillator | 2 +- simzoo/envs/test.py | 7 +++++++ simzoo/version.py | 2 -- 5 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 simzoo/envs/test.py diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 8d7ac595..12bf1b7e 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,6 +1,7 @@ [bumpversion] current_version = 0.0.3 commit = True +message = :bookmark: Bump version: {current_version} → {new_version} tag = True -[bumpversion:file:setup.cfg] +[bumpversion:file:simzoo.version.py] diff --git a/simzoo/__init__.py b/simzoo/__init__.py index 828467f0..4cbdc4fc 100644 --- a/simzoo/__init__.py +++ b/simzoo/__init__.py @@ -13,8 +13,9 @@ namespace_prefix = "machine_learning_control.simzoo." envs = { - "name": ["Oscillator-v0", "Ex3_EKF-v0"], + "name": ["Oscillator-v1", "Ex3_EKF-v0"], "module": ["simzoo.envs.oscillator:Oscillator", "simzoo.envs.Ex3_EKF:Ex3_EKF"], + "max_step": [800, 800], } for idx, env in enumerate(envs["name"]): @@ -24,5 +25,5 @@ register( id=env, entry_point=namespace_prefix + envs["module"][idx], - max_episode_steps=400, + max_episode_steps=envs["max_step"][idx], ) diff --git a/simzoo/envs/oscillator b/simzoo/envs/oscillator index 2b8737cf..806a859b 160000 --- a/simzoo/envs/oscillator +++ b/simzoo/envs/oscillator @@ -1 +1 @@ -Subproject commit 2b8737cfdd49a54a70455138874a9b051087b019 +Subproject commit 806a859b3ab306224fe4e0a236583c76f4012d4e diff --git a/simzoo/envs/test.py b/simzoo/envs/test.py new file mode 100644 index 00000000..b089bcc0 --- /dev/null +++ b/simzoo/envs/test.py @@ -0,0 +1,7 @@ +import gym + +# from register import Register +from oscillator import Oscillator + +# register() +gym.make("Oscillator-v0") diff --git a/simzoo/version.py b/simzoo/version.py index 02336f45..944ee7f3 100644 --- a/simzoo/version.py +++ b/simzoo/version.py @@ -1,4 +1,2 @@ # coding: utf-8 -# file generated by setuptools_scm -# don't change, don't track in version control version = '0.0.3'