Type Piracy / Conflicts with ComplexityMeasures.probabilities
bughigh priority
**Describe the problem**
When Associations.jl and ComplexityMeasures.jl are added to the same project environment, `probabilities` sometimes dispatches the Associations.jl method (type piracy?).
The conflict occurs even when separated into submodules (with `import Associations as A` in one and `using ComplexityMeasures` in another).
I don't know if this is intentional, but I'd like to use both of these packages in the same project. Are there any workarounds to specify ComplexityMeasures.probabilities?
**Minimal Working Example**
```shell
julia --project=@temp
```
```julia
import Pkg
Pkg.add("ComplexityMeasures")
Pkg.add("Associations")
import ComplexityMeasures as CM
CM.probabilities(CM.WaveletOverlap(), rand(100)) # as expected
import Associations as A
CM.probabilities(CM.WaveletOverlap(), rand(100)) # calls Associations.probabilities -> results in MethodError
```
**Package versions**
Julia Version 1.12.6
[614afb3a] Associations v4.5.0
[ab4b797d] ComplexityMeasures v3.10.1
19 条评论