Skip to content

async_mode with numpy arrays #984

@rsluijs

Description

@rsluijs

Windows 7

xlwings 0.14,Office365,Python 2.7

When returning an array in a UDF in combination with the new async_mode, the following error appears:

ValueError: The truth value of an array with more than one element is ambiguous.

@xw.func(async_mode='threading')
@xw.ret(expand='vertical',transpose=True)
def test1(a):
    time.sleep(5)
    b = np.array([a,a])
    return b

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions