Skip to content

Commit

Permalink
Envs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsSR committed Apr 10, 2024
1 parent f482b0e commit 8fe5001
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 192 deletions.
9 changes: 9 additions & 0 deletions src/fastfiz_env/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,26 @@
register(
id="BaseFastFiz-v0",
entry_point="fastfiz_env.envs:BaseFastFiz",
additional_wrappers=(
utils.wrappers.MaxEpisodeStepsInjectionWrapper.wrapper_spec(),
),
)

register(
id="BaseRLFastFiz-v0",
entry_point="fastfiz_env.envs:BaseRLFastFiz",
additional_wrappers=(
utils.wrappers.MaxEpisodeStepsInjectionWrapper.wrapper_spec(),
),
)


register(
id="VelocityFastFiz-v0",
entry_point="fastfiz_env.envs:VelocityFastFiz",
additional_wrappers=(
utils.wrappers.MaxEpisodeStepsInjectionWrapper.wrapper_spec(),
),
)

register(
Expand Down
190 changes: 0 additions & 190 deletions src/fastfiz_env/envs/event_fastfiz.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def reward(
"""
Reward function that gives a reward based on velocity of the action.
"""
reward = np.interp(action[4], [0, 10], [0, 1])
return reward**10
reward = float(np.interp(action[4], [0, 10], [0, 1]))
return reward**2

0 comments on commit 8fe5001

Please sign in to comment.