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

Comments

Projects
None yet
2 participants
@rsluijs

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 fzumstein closed this in 16f037a Nov 8, 2018

fzumstein added a commit that referenced this issue Nov 8, 2018

Merge pull request #985 from ZoomerAnalytics/xltrail-984-async-numpy
fixed cache check for numpy arrays closes #984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment