Skip to content

Commit

Permalink
👽 Updates Oscillator environment version
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Dec 3, 2020
1 parent 38a4dc4 commit 9450234
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -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]
5 changes: 3 additions & 2 deletions simzoo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]):
Expand All @@ -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],
)
2 changes: 1 addition & 1 deletion simzoo/envs/oscillator
7 changes: 7 additions & 0 deletions simzoo/envs/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import gym

# from register import Register
from oscillator import Oscillator

# register()
gym.make("Oscillator-v0")
2 changes: 0 additions & 2 deletions simzoo/version.py
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 9450234

Please sign in to comment.