Skip to content
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

Ambiguity with RotMatrix #15

Closed
Paethon opened this issue Nov 13, 2017 · 7 comments
Closed

Ambiguity with RotMatrix #15

Paethon opened this issue Nov 13, 2017 · 7 comments

Comments

@Paethon
Copy link

Paethon commented Nov 13, 2017

Hi

I suddenly become the following error when using Augmentor

MethodError: Rotations.RotMatrix{2,Float64,4}(::StaticArrays.SArray{Tuple{2,2},Float64,2,4}) is ambiguous. Candidates:
  (::Type{Rotations.RotMatrix{N,T,L}})(x::AbstractArray) where {N, T, L} in Rotations at /home/paethon/.julia/v0.6/Rotations/src/core_types.jl:78
  (::Type{SA})(a::StaticArrays.StaticArray) where SA<:StaticArrays.StaticArray in StaticArrays at /home/paethon/.julia/v0.6/StaticArrays/src/convert.jl:4
Possible fix, define
  (::Type{Rotations.RotMatrix{N,T,L}})(::StaticArrays.StaticArray)

Reason is rotations.jl line 324

recenter(RotMatrix(deg2rad(Float64(safe_rand(op.degree)))), center(img))

Unfortunately I am not yet confident enough to fix this myself

@Evizero
Copy link
Owner

Evizero commented Nov 13, 2017

This is likely related to JuliaImages/ImageTransformations.jl#43

Will look into it

@Paethon
Copy link
Author

Paethon commented Nov 13, 2017

Ahh, did not see this :) Thanks for the fast reply!

@Evizero
Copy link
Owner

Evizero commented Nov 13, 2017

The issue seems to be in upstream (StaticArrays).

If this is interfering with your work, try

Pkg.pin("StaticArrays", v"0.6.4")

until this issue is closed

@Evizero
Copy link
Owner

Evizero commented Nov 13, 2017

Also I just noticed another upstream issue that caused an error. you may want to check out master of Augmentor.jl for now. I pushed a quickfix for that

@Paethon
Copy link
Author

Paethon commented Nov 13, 2017

That solved it. Thanks for the quick response! And greetings from another Austrian (did not expect that :) )

@Evizero
Copy link
Owner

Evizero commented Nov 20, 2017

Once JuliaLang/METADATA.jl#12089 is merged you can free your pinned packages again to their tagged versions.

Pkg.free("StaticArrays")
Pkg.free("Augmentor")

All the issues should be resolved with the merge and tag of JuliaGeometry/Rotations.jl#50

@Paethon
Copy link
Author

Paethon commented Nov 23, 2017

Much appreciated! Thank you!

johnnychen94 pushed a commit that referenced this issue Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants