From d12df3a2285a0f618baaa02e084d402a11db6b3f Mon Sep 17 00:00:00 2001 From: Guillaume Marques Date: Tue, 16 Aug 2022 09:39:52 +0200 Subject: [PATCH] remove Base.getindex of _AxisLookup (#89) --- Project.toml | 6 +++--- src/axis.jl | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 683496f..453958c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BlockDecomposition" uuid = "6cde8614-403a-11e9-12f1-c10d0f0caca0" authors = ["Guillaume Marques", "Vitor Nesello", "François Vanderbeck"] -version = "1.8.0" +version = "1.9.0" [deps] Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" @@ -13,8 +13,8 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] Combinatorics = "1.0.2" -Graphs = "~1.5" -JuMP = "~0.23, 1" +Graphs = "~1.7" +JuMP = "~1.2" MathOptInterface = "1" MetaGraphs = "~0.7" julia = "1.6" diff --git a/src/axis.jl b/src/axis.jl index 75aec4f..121aae6 100644 --- a/src/axis.jl +++ b/src/axis.jl @@ -29,8 +29,6 @@ end convert(::Type{T}, i::AxisId{Name,T}) where {Name, T} = i.indice promote_rule(::Type{T}, ::Type{AxisId{Name,T}}) where {Name,T} = T -Base.getindex(x::JuMP.Containers._AxisLookup{Dict{AxisId{Name,T},N}}, key::T) where {Name,T,N} = x.data[key] - Base.hash(i::AxisId, h::UInt) = hash(i.indice, h) # Permit the access to the entry of an array using an AxisId.