Skip to content

Conversation

@arabidopsis
Copy link
Contributor

I ran pytest and it didn't seem to produce any problems.

@pep8speaks
Copy link

pep8speaks commented Apr 27, 2019

Hello @arabidopsis! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-06-27 16:06:21 UTC

@arabidopsis
Copy link
Contributor Author

Oops... I usually use black -- which I turned off since it would really have stuffed the code :)

@shoyer
Copy link
Member

shoyer commented Apr 27, 2019

Awesome, thank you @arabidopsis!

If you don't mind, it would be great if you could add a brief note about the bug fix to whats-new.rst. (if not, don't worry, I'll merge this in a few days either way)

You can ignore the test failure on Python 3.5. Something else seems to be going wrong there.

@arabidopsis
Copy link
Contributor Author

No problem. Thanks for xarray!

Just a question. I put a guard in to test just for tuples (because that's what was breaking for me) but it seems to me that _nan_minmax_object should just return utils.to_0d_object_array(data)
unconditionally at that point no? It's a max or a min right.

Wasn't sure.

@shoyer
Copy link
Member

shoyer commented Apr 28, 2019

Just a question. I put a guard in to test just for tuples (because that's what was breaking for me) but it seems to me that _nan_minmax_object should just return utils.to_0d_object_array(data)
unconditionally at that point no? It's a max or a min right.

Wasn't sure.

Yes, it does seem like a good idea to just return utils.to_0d_object_array() unilaterally in this case.

@dcherian dcherian mentioned this pull request May 30, 2019
15 tasks
@dcherian dcherian merged commit c729121 into pydata:master Jun 27, 2019
@dcherian
Copy link
Contributor

Thanks @arabidopsis. Welcome to xarray!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calling max() on a stacked dimension raises exception

4 participants