Skip to content

Commit

Permalink
Fix deprecation warnings on Vararg (#422)
Browse files Browse the repository at this point in the history
* Fix deprecation warnings on Vararg

* bump version to 3.6.6
  • Loading branch information
max-de-rooij authored Aug 7, 2024
1 parent 0d9bc24 commit ba9849b
Show file tree
Hide file tree
Showing 3 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
Expand Up @@ -2,7 +2,7 @@ name = "ComplexityMeasures"
uuid = "ab4b797d-85ee-42ba-b621-05d793b346a2"
authors = "Kristian Agasøster Haaga <[email protected]>, George Datseries <[email protected]>"
repo = "https://github.com/juliadynamics/ComplexityMeasures.jl.git"
version = "3.6.5"
version = "3.6.6"

[deps]
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
Expand Down
2 changes: 1 addition & 1 deletion src/core/print_counts_probs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ end

# 2D matrix. This method is all we need, because for higher dimensional arrays, we
# show 2D slices, not the entire ND arrays.
function print_array_with_margins(io::IO, x::AbstractArray{T, 2}, margins::Tuple{Vararg{<:AbstractVector, 2}}) where {T}
function print_array_with_margins(io::IO, x::AbstractArray{T, 2}, margins::Tuple{Vararg{AbstractVector, 2}}) where {T}
h, w = displaysize(io)
outs_x1, outs_x2 = vectorized_outcomes.(margins)
h, w = displaysize(io)
Expand Down
2 changes: 1 addition & 1 deletion src/core/probabilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct Probabilities{T, N, S} <: AbstractArray{T, N}
dimlabels::NTuple{N, S}

function Probabilities(x::AbstractArray{T, N},
outcomes::Tuple{Vararg{V, N} where V},
outcomes::Tuple{Vararg{V, N}} where V,
dimlabels::NTuple{N, S};
normed::Bool = false) where {T, N, S}
if !normed # `normed` is an internal argument that skips checking the sum.
Expand Down

0 comments on commit ba9849b

Please sign in to comment.