Skip to content

Commit ccb43cd

Browse files
Merge pull request #47 from JuliaReinforcementLearning/jpsl/missing-pad
Make CircularArrayBuffer pad! more generic
2 parents bec38e5 + 57c2f33 commit ccb43cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ReinforcementLearningTrajectories"
22
uuid = "6486599b-a3cd-4e92-a99a-2cea90cc8c3c"
3-
version = "0.3.0"
3+
version = "0.3.1"
44

55
[deps]
66
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/episodes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function pad!(trace::Trace)
9090
return nothing
9191
end
9292

93-
pad!(buf::CircularVectorBuffer{T}) where {T} = push!(buf, zero(T))
93+
pad!(buf::CircularArrayBuffer{T}) where {T,N,A} = push!(buf, zero(T))
9494
pad!(vect::Vector{T}) where {T} = push!(vect, zero(T))
9595

9696
#push a duplicate of last element as a dummy element for all 'trace' objects, ignores multiplex traces, should never be sampled.

0 commit comments

Comments
 (0)