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

async_mode with numpy arrays #984

Closed
rsluijs opened this issue Nov 8, 2018 · 0 comments
Closed

async_mode with numpy arrays #984

rsluijs opened this issue Nov 8, 2018 · 0 comments
Labels
Milestone

Comments

@rsluijs
Copy link

rsluijs commented Nov 8, 2018

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
@fzumstein fzumstein added the bug label Nov 8, 2018
@fzumstein fzumstein added this to the 0.14.1 milestone Nov 8, 2018
fzumstein added a commit that referenced this issue Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants