Skip to content

Commit 687d3ed

Browse files
author
Dharanish
committed
Fix CircularPrioritizedTraces
1 parent 320e3f8 commit 687d3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/episodes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ end
187187
function Base.push!(eb::EpisodesBuffer{<:Any,<:Any,<:CircularPrioritizedTraces{<:CircularArraySARTSATraces}}, xs::PartialNamedTuple{@NamedTuple{action::Int64}})
188188
if max_length(eb) == capacity(eb.traces)
189189
addition = (name => zero(eltype(eb.traces[name])) for name in [:state, :reward, :terminal])
190-
xs = (xs.namedtuple, addition)
190+
xs = merge(xs.namedtuple, addition)
191191
push!(eb.traces, xs)
192192
pop!(eb.traces[:state].trace)
193193
pop!(eb.traces[:reward])

0 commit comments

Comments
 (0)