Skip to content

Commit

Permalink
fix append!/push! not returning the dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Dec 15, 2020
1 parent 75ecb3d commit 8f16845
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DelayEmbeddings"
uuid = "5732040d-69e3-5649-938a-b6b4f237613f"
repo = "https://github.com/JuliaDynamics/DelayEmbeddings.jl.git"
version = "1.19.1"
version = "1.19.2"

[deps]
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
Expand Down
4 changes: 2 additions & 2 deletions src/dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ end
###########################################################################
# appending data
###########################################################################
Base.append!(d1::AbstractDataset, d2::AbstractDataset) = append!(d1.data, d2.data)
Base.push!(d::AbstractDataset, new_item) = push!(d.data, new_item)
Base.append!(d1::AbstractDataset, d2::AbstractDataset) = (append!(d1.data, d2.data); d1)
Base.push!(d::AbstractDataset, new_item) = (push!(d.data, new_item); d)

function Base.hcat(d::AbstractDataset{D, T}, x::Vector{<:Real}) where {D, T}
L = length(d)
Expand Down

0 comments on commit 8f16845

Please sign in to comment.