-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
Description
I am trying to pass a symbol to the hclust function from http://juliastats.github.io/Clustering.jl/stable/hclust.html
from julia import Clustering as C
result = hclust(costs, linkage=":ward")
I keep getting
TypeError: in #hclust, in typeassert, expected Symbol, got String
I also tried
from julia import Main as M
C.hclust(costs, linkage=M.Symbol('ward'))
but same error. I believe this is because PyCall is converting the symbol to a string before passing it through.
Current work around is:
jl = Julia(compiled_modules=False)
M.costs = costs
ctree=jl.eval('hclust(costs, linkage=:ward)')
sibyjackgrove