-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vcat / hcat is broken on julia 1.10 #148
Comments
Yeah, that's a known breaking change in Julia 1.10 unfortunately. |
I'm having the same issue unfortunately. While this is still pending, Is there any quick work around without downgrading julia? |
The new thing on 1.10 is methods with The alternative is to add ever more specific method here. There's already quite a list, in order for this package and NamedDims.jl to be able to be used together. Adding some versions with https://github.com/mcabbott/AxisKeys.jl/blob/master/src/functions.jl#L108-L113 Unfortunately I think the problem of many packages extending the same functions doesn't really have a satisfying solution, perhaps it's a flaw of multiple dispatch. The best I can think of would be first that Base uses |
@jtackm in case you can modify the failing code, replacing [a ; b] with cat(a, b; dims=1) and [a b] with cat(a, b; dims=2) works for now. |
A workaround I found working reliably is: Base.delete_method.(filter(
m -> nameof(m.module) == :SparseArrays && m.sig == Tuple{typeof(vcat), Union{Number,AbstractVecOrMat{<:Number}}, Vararg{Union{Number,AbstractVecOrMat{<:Number}}}},
methods(vcat)
))
Base.delete_method.(filter(
m -> nameof(m.module) == :SparseArrays && m.sig == Tuple{typeof(hcat), Union{Number,AbstractVecOrMat{<:Number}}, Vararg{Union{Number,AbstractVecOrMat{<:Number}}}},
methods(hcat)
)) Put this code into your script/code anywhere after package imports. It deletes those pirating methods defined in SparseArrays, getting rid of such ambiguities. At the same time, it doesn't interfere with |
hcat and vcat seems to be in conflict with SparseArrays in julia-1.10, that is also pirating these Base calls now.
Works on 1.9.
The text was updated successfully, but these errors were encountered: