Skip to content

Commit

Permalink
default max episode length now infinite + release 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbouteiller committed Dec 6, 2021
1 parent 94b71e0 commit 1530a79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion rtgym/envs/real_time_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from collections import deque
from threading import Thread, Lock
import warnings
import numpy as np


# General Interface class ==============================================================================================
Expand Down Expand Up @@ -132,7 +133,7 @@ def render(self):
# you need to perform observation capture in a parallel process and simply retrieve the last available observation
# in the get_obs_rew_done_info() and reset() methods of your interface
"time_step_timeout_factor": 1.0, # maximum elasticity in (fraction or number of) time-steps
"ep_max_length": 1000, # maximum episode length
"ep_max_length": np.inf, # maximum episode length
"real_time": True, # True unless you want to revert to the usual turn-based RL setting (not tested yet)
"async_threading": True, # True unless you want to revert to the usual turn-based RL setting (not tested yet)
"act_in_obs": True, # When True, the action buffer will be appended to observations
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

setup(name='rtgym',
packages=[package for package in find_packages()],
version='0.4',
version='0.5',
license='MIT',
description='Easily implement custom OpenAI Gym environments for real-time applications',
long_description=long_description,
long_description_content_type="text/markdown",
author='Yann Bouteiller',
url='https://github.com/yannbouteiller/rtgym',
download_url='https://github.com/yannbouteiller/rtgym/archive/refs/tags/v0.4.tar.gz',
download_url='https://github.com/yannbouteiller/rtgym/archive/refs/tags/v0.5.tar.gz',
keywords=['gym', 'real', 'time', 'custom', 'environment', 'reinforcement', 'learning', 'random', 'delays'],
install_requires=['gym', 'numpy'],
classifiers=[
Expand Down

0 comments on commit 1530a79

Please sign in to comment.