Skip to content

np.bool_ does not convert to julia Bool #502

Closed
@willow-ahrens

Description

@willow-ahrens

Affects: Both

Describe the bug
We expected np.bool_ to convert to julia Bool, just like all the other np.int32 and np.float64, but instead we get an Array{Bool, 0}

>>> import juliacall

>>> jl.println(np.int_(1))
1
>>> jl.println(int(1))
1
>>> jl.println(np.True_)
fill(true)
>>> jl.println(True)
true

Your system
juliacall = "^0.9.15", several operating systems

Additional context
Thank you for maintaining such an awesome piece of software. This occurs in finch-tensor/finch-tensor-python#54

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions