html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/2507#issuecomment-433789634,https://api.github.com/repos/pydata/xarray/issues/2507,433789634,MDEyOklzc3VlQ29tbWVudDQzMzc4OTYzNA==,1328158,2018-10-29T05:07:06Z,2018-10-29T05:07:06Z,NONE,"You're a wizard, Stephan. That was my bug. I really appreciate your help!","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,373646673 https://github.com/pydata/xarray/issues/2507#issuecomment-433779791,https://api.github.com/repos/pydata/xarray/issues/2507,433779791,MDEyOklzc3VlQ29tbWVudDQzMzc3OTc5MQ==,1217238,2018-10-29T03:43:49Z,2018-10-29T03:43:49Z,MEMBER,"> Is xarray responsible for putting the arrays into a tuple upon function completion, and if so where should I go to look into that? No, I don't think xarray is responsible for this. Depending on the options you pass to `apply_ufunc` ( e.g., `vectorize=True`) we may substitute a function for the provided `func`, but that's not the case by default. I think this is the line in your function where you return a list: https://github.com/monocongo/climate_indices/blob/cd1982752e288cf02d50ca0680744842bde16293/climate_indices/palmer.py#L1937","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,373646673 https://github.com/pydata/xarray/issues/2507#issuecomment-433768856,https://api.github.com/repos/pydata/xarray/issues/2507,433768856,MDEyOklzc3VlQ29tbWVudDQzMzc2ODg1Ng==,1328158,2018-10-29T02:20:30Z,2018-10-29T02:20:30Z,NONE,"Any guidance as to where I should start when looking into this further? At this point, all I've been able to surmise is that the arrays returned by the applied function appear to be present, but are present as a list of arrays rather than as a tuple. That's where things go wonky in computation.py where it's checking for a tuple instance. Is xarray responsible for putting the arrays into a tuple upon function completion, and if so where should I go to look into that?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,373646673 https://github.com/pydata/xarray/issues/2507#issuecomment-433458618,https://api.github.com/repos/pydata/xarray/issues/2507,433458618,MDEyOklzc3VlQ29tbWVudDQzMzQ1ODYxOA==,1328158,2018-10-26T16:03:26Z,2018-10-26T16:03:26Z,NONE,"Thanks, Stephan. I don't think this is related to numba, as I'm running this using the environment variable `NUMBA_DISABLE_JIT=1` (I do this when debugging my code since numba JIT prevents stepping into and inspection of JIT annotated code since it's compiled). In any event, I can comment out the `@numba.jit` annotations and report any discrepancies.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,373646673 https://github.com/pydata/xarray/issues/2507#issuecomment-433255707,https://api.github.com/repos/pydata/xarray/issues/2507,433255707,MDEyOklzc3VlQ29tbWVudDQzMzI1NTcwNw==,1217238,2018-10-26T01:21:14Z,2018-10-26T01:21:14Z,MEMBER,I wonder if this is due to your use of `@numba.jit` on the applied functions -- does removing that fix this?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,373646673