Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove special handling of SARTSA traces #75

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

johannes-fischer
Copy link

This MR contains several things:

  • fixing the capacity function for predefined traces like CircularArraySARTSTraces etc. e924768
  • reducing the capacity of the traces in CircularArraySARTSATraces to only the necessary capacity (exactly one additional state and action) e924768
  • removing special code for SARTSA traces and make it work with the generic code bfc1591
    • Base.push!(t::CircularPrioritizedTraces{<:CircularArraySARTSATraces}, x) and `
    • Base.push!(eb::EpisodesBuffer{<:Any,<:Any,<:CircularArraySARTSATraces}, xs::PartialNamedTuple)
    • function Base.push!(eb::EpisodesBuffer{<:Any,<:Any,<:CircularPrioritizedTraces{<:CircularArraySARTSATraces}}, xs::PartialNamedTuple{@NamedTuple{action::Int64}})

Remove methods specifically defined for SARTSA traces in EpisodesBuffer and CircularPrioritizedTraces
Copy link

codecov bot commented Jan 2, 2025

Codecov Report

Attention: Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.

Project coverage is 74.08%. Comparing base (29a6a3e) to head (bfc1591).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/common/CircularArraySARTSTraces.jl 0.00% 1 Missing ⚠️
src/episodes.jl 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
- Coverage   74.23%   74.08%   -0.15%     
==========================================
  Files          18       17       -1     
  Lines         850      822      -28     
==========================================
- Hits          631      609      -22     
+ Misses        219      213       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jeremiahpslewis
Copy link
Member

@johannes-fischer this looks great, thank you! I’ll give it a review next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants