Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

reset current_t upon resetting MaxTimeoutEnv #115

Conversation

Sid-Bhatia-0
Copy link
Member

Fix bug

  1. reset current_t upon each reset! of MaxTimeoutEnv
    See Reset current_t upon resetting MaxTimeoutEnv ReinforcementLearningBase.jl-Archive#102.

  2. Also, change :terminal to :is_terminated, which is the name of the method that returns whether and environment has terminated or not.

@findmyway
Copy link
Member

Nice catch!

How about adding a test case here to avoid this error next time.

@codecov-io
Copy link

codecov-io commented Dec 28, 2020

Codecov Report

Merging #115 (06f2e6a) into master (8141ddb) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
+ Coverage   69.04%   69.10%   +0.05%     
==========================================
  Files          31       31              
  Lines        1037     1039       +2     
==========================================
+ Hits          716      718       +2     
  Misses        321      321              
Impacted Files Coverage Δ
src/environments/wrappers/MaxTimeoutEnv.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8141ddb...06f2e6a. Read the comment docs.

@Sid-Bhatia-0 Sid-Bhatia-0 merged commit ed9e04c into JuliaReinforcementLearning:master Dec 28, 2020
@Sid-Bhatia-0 Sid-Bhatia-0 deleted the fix_max_timeout_env branch December 28, 2020 15:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants